Dear list, Using ggplot2 I could produce both boxplot and points in the same plot but instead of points I would like to label the different subjects with different colors or their idnumbers. Is there away to do it? Also how can I put three plots on the same graph with ggplot2? mfrow=c(3,1) did not do the job. > dat group time id freq 1 1 00 0018 5.21 2 1 00 3026 3.13 3 1 00 5030 5.04 4 1 00 5108 3.23 5 1 00 5152 3.97 6 1 00 6080 0.16 7 1 01 0018 4.89 8 1 01 3026 6.58 9 1 01 5030 7.42 10 1 01 5108 10.10 11 1 01 5152 3.74 12 1 01 6080 0.81 library(ggplot2) qplot(factor(dat$time),dat$freq,dat,geom=c("boxplot","jitter"), ylab=names(dat[,4]),xlab="time")
__________________________________________________________ Ta semester! - sök efter resor hos Kelkoo. Jämför pris på flygbiljetter och hotellrum här: http://www.kelkoo.se/c-169901-resor-biljetter.html?partnerId=96914052 [[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.