0

I'm adding smooth lines to my data which are grouped, but the results doesn't change even if I change span. Any reason?

ggplot(auth.an, aes(x = age, y = auth_eNd_an, color = subregion)) +
  geom_point(size = 3) + 
  geom_smooth(method = loess, span = 0.1)
aosmith
  • 34,856
  • 9
  • 84
  • 118
JianghuiDu
  • 319
  • 2
  • 9
  • Maybe this reproducible example of using `geom_smooth` with a color/group variable will be of some help. https://stackoverflow.com/questions/46586190/span-argument-not-working-on-graph-on-ggplot2/46613869#46613869 – bdemarest Jun 08 '18 at 03:39
  • Can you post your data? It's hard to know what's going on otherwise – camille Jun 09 '18 at 15:44

1 Answers1

0

A little late, but try inverted commas:

geom_smooth(method = "loess", span = 0.1)