scale_linetypescale_linetype(name=NULL, expand=c(0.05, 0.55), limits=NULL, breaks=NULL, labels=NULL, formatter=identity, drop=FALSE, ...)
Scale for line patterns
This page describes scale_linetype, see layer and qplot for how to create a complete plot from individual components.
What do you think of the documentation? Please let me know by filling out this short online survey.
Parameters control the appearance of the scale. In addition to the parameters listed below (if any), any aesthetic can be used as a parameter, in which case it will override any aesthetic mapping.
name: name of scale to appear in legend or on axis. Maybe be an expression: see ?plotmathexpand: numeric vector of length 2, giving multiplicative and additive expansion factorslimits: numeric vector of length 2, giving the extent of the scalebreaks: numeric vector indicating where breaks should lielabels: character vector giving labels associated with breaksformatter: NULLdrop: NULLThis function returns a scale object.
> 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 flexibilit
What do you think of the documentation? Please let me know by filling out this short online survey.