I have a simple plot:

ggplot(polls, aes(x =Date, y = Popular_Support, colour=Party, shape=Source))
+
stat_smooth(span=0.5) +
geom_point()

How can I get the smooth to only render along one of the scales? ie, I want
to see regressions for each colour, but not each shape.

Right now I get a trendline for each colour and and shape... resulting in an
unreadable mess =D

Thanks!

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to