[R] How to hide tick lines behind the box-and-whisker 's in a boxplot

2009-10-12 Thread Helmer Belbo
Dear R people, I wonder how to hide tick lines behind other figures in a plot, e.g. in a boxplot. # Sample code: x- c(rep(4,50),rep(5,20),rep(6,50),rnorm(20,5,1)) boxplot(x) axis(2,tck=1,col.ticks='grey',lty=5 ) # end of sample code The tick lines is put on top of the box-plot, but I would

[R] Legends dissapearing from scatterplot (car package) when using logarithmic axis

2009-09-14 Thread Helmer Belbo
Dear R-people I am struggling with disappearing legend box when using logarithmic axis in scatterplot. Sample code: ### library(car) #constructing data set x=rep(1:50, 2); ClassDummy=rep(1:2, each=50) ; y=5+ClassDummy+(rnorm(100,mean=(50/x),sd=(10/x))) mydata - data.frame