| geom_line {ggplot2} | R Documentation |
<br /> geom_path() connects the observations in the order in which they appear in <br /> the data. geom_line() connects them in order of the variable on the x axis. <br /> geom_step() creates a stairstep plot, highlighting exactly when changes <br /> occur. The group aesthetic determines which cases are connected together.
geom_line(
mapping = NULL,
color = NULL,
width = 5,
show.legend = TRUE,
alpha = 1,
bspline = FALSE);
An alternative parameterisation is geom_segment(), where each line corresponds to a single case which provides the start and end coordinates.
A line chart plot layer