Re: [R] how can i plot dotted regression line shaped with condition using ggplot

2012-10-19 Thread autumnlin
I would like to add specific point on to the regression line, like (x=1),shape=value(1) is it possible? -- View this message in context: http://r.789695.n4.nabble.com/how-can-i-plot-dotted-regression-line-shaped-with-condition-using-ggplot-tp4646773p4646797.html Sent from the R help mailing lis

[R] ggplot specify line type

2012-10-19 Thread autumnlin
hi is it possible to draw a graph like the attached one using ggplot? how should i code it in r? thanks. -- View this message in context: http://r.789695.n4.nabble.com/ggplot-specify-line-type-tp4646789.html Sent from the R help mailing list

[R] how can i plot dotted regression line shaped with condition using ggplot

2012-10-19 Thread autumnlin
I am plotting ggplot smooth line. I would like to add dots to the regression line, the dots are shaped under different condition. p <- ggplot(data, aes(x = x, y = y, shape = assign, linetype = factor(sex))) p0b <- p+ scale_linetype_manual(breaks=c("0","1")

[R] how to add mean value to regression line using ggplot?

2012-10-18 Thread autumnlin
I have generated plot using ggplot, and i would like to add mean value to the regression line as a marker. how to do it? p <- ggplot(data, aes(x = x, y = y, color = a, shape = factor(sex), linetype = factor(sex))) p0 <- p + scale_color_man