Dear George, You could use jitter(x) in place of x to randomly perturb the horizontal coordinates. See ?jitter for details.
I hope this helps, John ------------------------------ John Fox, Professor Department of Sociology McMaster University Hamilton, Ontario, Canada web: socserv.mcmaster.ca/jfox > -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of George Chen > Sent: February-07-09 3:19 PM > To: r-help@r-project.org > Subject: [R] Question about plotting data points in box plots > > Hello, > > I am plotting my data as side by side box plots. > Could somebody tell me how I can plot the points from which the box plots are > derived inside the box plots? > I imagine some use of the plot(x,y) function with x = the data and y = > location of box plot, but how do I distribute the points about the vertical > rather than have them show up all on one vertical axis? > > Thanks in advance, > > George Chen > > ______________________________________________ > 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. ______________________________________________ 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.