powered by
A quick and dirty way to show linetypes.
show_linetypes(linetypes, labels = TRUE)
This function called for the side effect of creating a plot. It returns linetypes.
linetypes
A character vector of linetypes. See par().
par()
Label each line with its linetype (lty) value.
show_col(), show_linetypes()
show_col()
show_linetypes()
library("scales") show_linetypes(linetype_pal()(3)) show_linetypes(linetype_pal()(3), labels = TRUE)
Run the code above in your browser using DataLab