search for: bocplot

Displaying 2 results from an estimated 2 matches for "bocplot".

2007 Jun 21
2
abline plots at wrong abscissae after boxplot
Hi folks, I'm using R 2.5.0 under ESS under Windows XP. (This also happens using the Rgui application.) I'm trying to add lines to a plot originally made with "boxplot", but the lines appear in the wrong place. Below is a script that illustrates the problem # boxablinetest.R - script to show problem with abline on box plot x <- c( 2, 2, 2, 3, 3, 3, 4, 4, 4) y
2007 Jun 24
2
matlab/gauss code in R
...leringtech.com> > Message-ID: <s67bc579.034 en tedmail2.lgc.co.uk> > Content-Type: text/plain; charset=US-ASCII > > Boxplot positions and labels are not the same thing. > You have groups 'called' "2", "3", "4". As factors - which is what bocplot will turn them into - they will be treated as arbitrary labels and _numbered_ 1:3 (try as.numeric(factor(x)). > > So your lm() used 2:4, but your plot (and abline) uses 1:3 for positions and "2" - "4" as labels. > > The best option used to be to plot the boxes at po...