scale_linetype

scale_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

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.

Returns

This function returns a scale object.

Examples

> 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.