| scale_linetype_discrete {ggplot2} | R Documentation |
Scale for line patterns
scale_linetype_discrete(name = NULL, expand = c(0.05, 0.55),
limits = NULL, breaks = NULL, labels = NULL, formatter = identity,
drop = FALSE, legend = TRUE, ...)
name |
name of scale to appear in legend or on axis. Maybe be an expression: see ?plotmath |
expand |
numeric vector of length 2, giving multiplicative and additive expansion factors |
limits |
numeric vector of length 2, giving the extent of the scale |
breaks |
numeric vector indicating where breaks should lie |
labels |
character vector giving labels associated with breaks |
formatter |
NULL |
drop |
NULL |
legend |
NULL |
... |
ignored |
This page describes scale\_linetype\_discrete, see layer and qplot for how to create a complete plot from individual components.
A layer
Hadley Wickham, http://had.co.nz/
## Not run: ec_scaled <- data.frame( date = economics$date, rescaler(economics[, -(1:2)], "range") ) ecm <- melt(ec_scaled, id = "date") qplot(date, value, data=ecm, geom="line", group=variable) qplot(date, value, data=ecm, geom="line", linetype=variable) qplot(date, value, data=ecm, geom="line", colour=variable) # See scale_manual for more flexibility ## End(Not run)