sclinetype: Scale: line type

Description Usage Arguments Examples

View source: R/scale-categorical.r

Description

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.

Usage

1

Arguments

plot

ggplot object

name

name of the scale (used in the legend)

Examples

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

hadley/ggplot1 documentation built on Aug. 19, 2019, 2:42 p.m.