You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Art, ggplot2
Try
test <- ggplot(aes(x = x, y = y, group = group, colour = group), data = data) +
geom_point() +
geom_line(stat = 'summary', fun.y = mean)
Aesthetics defined in the ggplot() statement apply to all layers.
Defining aesthetics inside a geom() call make them local to the layer
in which they are defined.