A quick and dirty way to show linetypes.
Arguments
- linetypes
A character vector of linetypes. See
graphics::par().- labels
If
TRUE(the default), label each line with its linetype (lty) value.
Examples
library("scales")
show_linetypes(linetype_pal()(3))
show_linetypes(linetype_pal()(3), labels = TRUE)
