[R] Question about plotting data points in box plots

John Fox jfox at mcmaster.ca
Sat Feb 7 21:42:00 CET 2009

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 Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
web: socserv.mcmaster.ca/jfox

> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
> Behalf Of George Chen
> Sent: February-07-09 3:19 PM
> To: r-help at 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
> 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
> rather than have them show up all on one vertical axis?
> Thanks in advance,
> George Chen
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list