[R] mfrow for levelplot?

2008-01-05 Thread marcg
hello could anyone tell my, why I do not suceed with mfrow? par(mfrow=c(4,4)) for (i in 5:17){ levelplot(maxwater[,i]~maxwater$V1*maxwater$V2, col.regions=whiteblue(5), xlab="", cuts=4) } Thanks Marc -- __ R-help@r-project.org mailing list

Re: [R] Reconstruct array dataset

2007-11-21 Thread marcg
-Nachricht > Datum: Wed, 21 Nov 2007 14:17:41 - > Von: "Rob Robinson" <[EMAIL PROTECTED]> > An: "\'marcg\'" <[EMAIL PROTECTED]> > CC: [EMAIL PROTECTED] > Betreff: RE: [R] Reconstruct array dataset > Can you not read it into a single vec

[R] Reconstruct array dataset

2007-11-21 Thread marcg
Hi there I have an interesting problem: My csv file is of array dimensions [12,50], but it was saved the wrong way: there should be only 11 colums. What happens now if I read it into R is that the whole data set is shifted ( in the first row, the last column contains already the first value of

[R] Start plot really at baselines x=0, y=0

2007-10-31 Thread marcg
Dear R Plots without par arguments do start not at zero (means, the box around is somwhere outside the specified plotrange). How to start really from zero, pe. basline y=0? every standart par works like this: x<-seq(1,10,0.1) y<-sin(x) plot(sin(x)) Thanks for help Marc -- Ist Ihr Browser V

[R] quantiles for timestep out of large list

2007-10-29 Thread marcg
dear R I have a list consisting of 20 matrices of dimensions (1600, 15). Out of this list I plot median, max, min values in a timeplot, that works well with the code at the end. I would like to plot quartile ranges.'m not able to find a way to compute the quantile for every time step. Thanks

[R] sum variable as long condition is true

2007-10-23 Thread marcg
Hello R For expierienced user, the following problem will be easy to solve: a<-c(0,1,0,1,0,2,3,4,3,2) b<-c(3,3,3,4,4,4,7,7,7,10) c<-data.frame(a,b) Data Frame c contains tow colums. I would like to sum up all values in a as long as b stays the same: sum(a[which(b==1)]) does this, but i have t

[R] Save variable with loop part

2007-10-15 Thread marcg
Hello does anyone know how to save in a variable with a loop part. Im reading several csv files with read.table and would like to save with a loop: for (i in 0:9){ } should give read0, read1, read2, read3, read4, read5, read6, read7, read8, read9 st. like read(i)<-read.table("myfile.csv".)

[R] strange: yaxis inversion with zoo not possible?

2007-10-11 Thread marcg
hej there I want to invert the yaxis as follows: x<-rnorm(1:50) plot(x^2, type="h", ylim=c(0,10)) plot(x^2, type="h", ylim=c(10,0)) then doing the following it won't work - kind of strange isn't it? x.zoo<-zoo(x^2) plot(x.zoo, type="h", ylim=c(10,0)) plot(x.zoo, type="h", ylim=c(0,10)) how can

[R] zoo timeserie continuous? complete with NaN

2007-10-02 Thread marcg
dear r-list I have a zoo object with 2 objects and time: looks like: 2005-12-31 12:00:00 NA NaN 2005-12-31 13:00:00 NA NaN 2005-12-31 14:00:00 NA NaN 2005-12-31 15:00:00 NA NaN 2005-12-31 16:00:00 NA NaN 2005-12-31 18:00:00 NA NaN

[R] different colors for two wireframes in same plot

2007-09-27 Thread marcg
help marc Original-Nachricht > Datum: Thu, 27 Sep 2007 11:29:19 +0200 > Von: "Frede Aakmann Tøgersen" <[EMAIL PROTECTED]> > An: "marcg" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > Betreff: SV: [R] different colors for two wireframes in sa

Re: [R] different colors for two wireframes in same plot

2007-09-27 Thread marcg
help marc Original-Nachricht > Datum: Thu, 27 Sep 2007 11:29:19 +0200 > Von: "Frede Aakmann Tøgersen" <[EMAIL PROTECTED]> > An: "marcg" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > Betreff: SV: [R] different colors for two wireframes in sa

[R] different colors for two wireframes in same plot

2007-09-27 Thread marcg
Hello R, According to: g <- expand.grid(x = 1:10, y = 5:15, gr = 1:2) g$z <- log((g$x^g$g + g$y^2) * g$gr) wireframe(z ~ x * y, data = g, groups = gr, scales = list(arrows = FALSE), drape = TRUE, colorkey = TRUE, screen = list(z = 30, x = -60)) i have two wireframes

[R] add points to wireframe

2007-09-26 Thread marcg
Hello R-classicist won't like the following question due to there's no minimal reproducible example and the question was posted already. Anyway I'm not able understand this rather complicated version of "add points to wireframe". what I have is matrix 3x2000 with a dem<-(x,y,z, coordinates) (n

[R] (no subject)

2007-09-19 Thread marcg
Dear all I try to print 9 plots on a page, arranged as the code shows below. nf <- layout(matrix(c(1,0,2,0,0,3,0,4,0,5,0,6,0,0,0,0,7,0,8,9), 10,2)) layout.show(nf) but when I try to plot, an error message Fehler in plot.new() : Grafikränder zu groß appears to verify p.e. with plot(runif(10:1

[R] layout function for several plots

2007-09-19 Thread marcg
Dear all I try to print 9 plots on a page, arranged as the code shows below. nf <- layout(matrix(c(1,0,2,0,0,3,0,4,0,5,0,6,0,0,0,0,7,0,8,9), 10,2)) layout.show(nf) but when I try to plot, an error message Fehler in plot.new() : Grafikränder zu groß appears to verify p.e. with plot(runif(10:1