View source: R/scale-categorical.r
sclinetype | R Documentation |
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.
sclinetype(plot, name = "")
plot |
ggplot object |
name |
name of the scale (used in the legend) |
p <- ggplot(mtcars, aes=list(x=mpg, y=wt, linetype=cyl))
ggline(p)
ggline(sclinetype(p))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.