Skip to content
Prev 268932 / 398502 Next

Specifying data point locations on x-axis using boxplot() and points()

On Aug 18, 2011, at 12:03 AM, Kota Hattori wrote:

            
`boxplot` should return the values at which the midpoints of bars are  
being plotted. Take a look at str(<your-boxplot-call>). It's probably  
the $x component that you want to extract. `boxplot.stats` can also be  
used. You should either use plot=FALSE with boxplot or use  
boxplot.stats to gather the locations that can be used as x values  
(perhaps with jitter) in calls to points.

The scripts are not much use without data.)
David Winsemius, MD
West Hartford, CT