View source: R/scale-linetype.r
scale_linetype | R Documentation |
Default line types based on a set supplied by Richard Pearson, University of Manchester. Line types can not be mapped to continuous values.
scale_linetype(..., na.value = "blank")
scale_linetype_continuous(...)
scale_linetype_discrete(..., na.value = "blank")
... |
common discrete scale parameters: |
na.value |
The linetype to use for |
base <- ggplot(economics_long, aes(date, value01))
base + geom_line(aes(group = variable))
base + geom_line(aes(linetype = variable))
# See scale_manual for more flexibility
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.