Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
2 answers
2k views

Add Mean Trend Line to geom_line plot + R

I need to add an average trend line to a geom_line line plot in R. The result should be a dotted line on the same chart that that is the average of the values that make up the other lines, like so: ...
John Conor's user avatar
3 votes
1 answer
3k views

ggplot2: add line for average per group (Error: No stat called StatHline.)

I recently updated ggplot2 package and running into major issues drawing horizontal lines for averages per group using facets. I believe this post is no longer valid? I am creating a time series ...
Shery's user avatar
  • 1,872