sclinetype {ggplot}R Documentation

Scale: line type

Description

Create a scale for categorical line types.

Usage

sclinetype(plot = .PLOT)

Arguments

plot plot to add scale to

Details

This scale is automatically added to the plot when you use the linetype aesthetic. As there are no options to this scale, you shouldn't ever need to add it yourself.

Author(s)

Hadley Wickham <h.wickham@gmail.com>

See Also

scale_categorical, map_linetype

Examples

p <- ggplot(mtcars, aes=list(x=mpg, y=wt, linetype=cyl))
ggline(p)
ggline(sclinetype(p))

[Package ggplot version 0.2.2 Index]