Declare the scale for a mapped (discrete) linetype aesthetic. Levels cycle
through a default set of line types unless values is given. A line-type
legend is drawn automatically. Applies to line-like marks (mark_line(),
mark_step()).
Usage
scale_linetype(plot, values = NULL, name = NULL)
scale_linetype_discrete(plot, values = NULL, name = NULL)Arguments
- plot
A PlotSpec.
- values
Character vector of line types (each one of
"solid","dashed","dotted","dotdash","longdash","twodash"), orNULLfor the default set.- name
Legend title, or
NULLto derive from the encoding.
Value
The modified PlotSpec.

