Re: [R] Multiple plots per window

2008-09-21 Thread Gabor Grothendieck
Here are two ways: one using classic graphics and one much shorter way using lattice. ggplot2 would be a another short way (not shown). Lines <- "1995 1996 1997 1998 153 133 145 111 189 177 200 170 221 241 187 243 215 228 201 178 302 283 292 248 223 255 220 202 20

Re: [R] Multiple plots per window

2008-09-21 Thread p
sorry, as Mark Leeds pointed out to me, the row/column numbers where mixed up in my example... happens when you cut & paste like mad from your history... it should read as follows: sales2.1 <- c(153,189,221,215,302,223,201,173,121,106,86,87,108, 133,177,241,228,283,255,238,164,128,108,87,74,95, 1

[R] Multiple plots per window

2008-09-21 Thread p
Hi all, I'm currently working through "The Analysis of Time Series" by Chris Chatfield. In order to also get a better understanding of R, I play around with the examples and Exercises (no homework or assignement, just selfstudy!!). Exercise 2.1 gives the following dataset (sales figures for 4 we