Re: [R] ggplot2: Adding points to a density plot

2010-03-31 Thread Johannes Graumann
Thanks a lot! This got me started! Joh Dennis Murphy wrote: > Hi: > > Try this: > > library(ggplot2) > movmed <- ddply(movies, .(decade), summarise, med = median(rating)) > m + geom_point(data = movmed, aes(x = med), y = 0, size = 2) > > HTH, > Dennis > > On Wed, Mar 31, 2010 at 4:46 AM, Joh

Re: [R] ggplot2: Adding points to a density plot

2010-03-31 Thread Dennis Murphy
Hi: Try this: library(ggplot2) movmed <- ddply(movies, .(decade), summarise, med = median(rating)) m + geom_point(data = movmed, aes(x = med), y = 0, size = 2) HTH, Dennis On Wed, Mar 31, 2010 at 4:46 AM, Johannes Graumann wrote: > Hi, > > Consider something like > > library(ggplot2) > > movi