Re: [R] reducing the number of x-axis lables in a bwplot while plotting all boxes

2008-02-29 Thread Cornelis de Gier
Well, actually, in Splus I had this problem. In R this problem seems to be solved. Does anyone have an idea how to solve this problem in Splus? Cornelis 2008/2/29, Cornelis de Gier <[EMAIL PROTECTED]>: > I'm looking for an answer to a similar question: > > years <-

Re: [R] reducing the number of x-axis lables in a bwplot while plotting all boxes

2008-02-29 Thread Cornelis de Gier
I'm looking for an answer to a similar question: years <- as.factor(sort(rep(1987:2006,20))) values <- rnorm(1:400,0,10) plot(years,values) results in 20 boxplots with x axis labels unreadable because there are too many of them. How do I reduce the number of x axis labels? Regards, Cornelis 2

[R] how to customize boxplot

2008-01-31 Thread Cornelis de Gier
Dear List, I'd like to make boxplots of a large number of observations (+/- 20.000), which are distributed log-normal and right skewed. The problem is that with standard boxplots a too large number of observations are displayed as outliers. I also tried to display the log of the observations, but

[R] moving average and NA values

2007-12-10 Thread Cornelis de Gier
The S-plus function moving.ave(data, span = 2) calculates the moving average, but it does not have an argument to tell it how to deal with NA values, so it will return NA for all averages as shown below. Is there an R or S moving average function which is able to omit some NA values in the dataset