galneweinhaw
2008-Sep-27 04:18 UTC
[R] ggplot multiple scales but a stat for only one of them
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! -- View this message in context: http://www.nabble.com/ggplot-multiple-scales-but-a-stat-for-only-one-of-them-tp19699571p19699571.html Sent from the R help mailing list archive at Nabble.com.
Maybe Matching Threads
- ggplot question error: Error in s(x, bs = "cs") : object 'x' not found
- Interaction scatterplots in ggplot with multiple regression lines
- ggplot2: modifying line width and background fill color for stat_smooth()
- Very slow in processing the equation in the scatter plot ggplot
- ggplot: stat_smooth() and nls method