[R] param:qsec in ggplot2

Matthieu Dubois matthdub at gmail.com
Thu Jul 23 10:31:42 CEST 2009


Hi, 

qseq is a variable from the data.frame mtcars, 
that has been used to create the initial plot p. 

library(ggplot2)
p <- ggplot(mtcars, aes(wt, mpg))
p + geom_point(aes(size = qsec)

Just replace qseq by your variable of interest. 

Regards, 

Matthieu




More information about the R-help mailing list