search for: mdgi

Displaying 16 results from an estimated 16 matches for "mdgi".

Did you mean: md5i
2007 Nov 07
4
partially sum variable of a dataframe
Hello, A stupid question: I have an array with two columns, the first "a" acting as my index in 0.25 steps, the second one "b" the column of interest. How can i sum up "b" only for a specified window in "a" (as the window command for time series) a=seq(0,10,0.25) b=runif(41) c=data.frame(a,b) Sum up c if 3<a<5.25 How to do that? thanks marc --
2007 Nov 21
2
Reconstruct array dataset
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 the supposed second row and so on...) how can I tell R to switch after 11 read values to the next row,
2007 Oct 02
2
zoo timeserie continuous? complete with NaN
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 2005-12-31 19:00:00 NA NaN 2005-12-31 20:00:00 NA NaN 2005-12-31 21:00:00 NA
2007 Sep 27
3
different colors for two wireframes in same plot
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 in one plot. How could i change the color of the top - one to transparent (or only the grid).
2007 Oct 11
1
strange: yaxis inversion with zoo not possible?
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 I invert the axis with zoo objects? Marc --
2007 Oct 29
1
shading of curves with polygon
Hello again With the poylgon function it's possible to plot shaded areas under a curve. But somehow it connects the start and the endpoint of a line and fills whats between them. I would actually like to set the boarders of the shading by two min and max curves, but I failed. i tried stl like: polygon(min, max, border=0), where min and max are my curves plotet by plot(max) lines(min)
2008 Jan 25
1
several image.plots with same axis (maximum)
Hello R freaks I have the following problem: I have several image plots, that need to have the same axis. i want to specify the range from 0 to a maximum value. The problem is, that the axis then only goes to the highest value of the respective plot. E.g: this is a modified example from the help file "image.plot" z values go until 25. My maximum in plot two is set to 30, so I want the
2007 Nov 29
2
image() plot with z not in matrix format
Hello R cracks The image() function requires strictly increasing x and y values and z as a matrix. Actually, I don't have equally spaced variables, but anyway want to plot an colored image() (with z-information). An example of my problem is here: a<-data.frame(rnorm(100), rnorm(100), runif(100)*100) How can I plot this data as an image (x=a[,1], y=a[,2] and z=a[,3])-> according to
2007 Oct 23
3
sum variable as long condition is true
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 to manually put in b then i tryied st like this, but i canno't save it properly for (i
2007 Sep 28
0
transparency of one layer in multiple wireframe plot
...9;m actually looking for is making just the UPPER (toplayer) transparent. Thanks for further help marc -------- Original-Nachricht -------- > Datum: Thu, 27 Sep 2007 11:29:19 +0200 > Von: "Frede Aakmann T?gersen" <FredeA.Togersen at agrsci.dk> > An: "marcg" <mdgi at gmx.ch>, r-help at stat.math.ethz.ch > Betreff: SV: [R] different colors for two wireframes in same plot > You can obtain some transparency setting the alpha transparency. This is > device dependent though. Using the pdf device you can do this obtaining > transparency of both sur...
2007 Sep 19
3
layout function for several plots
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)) i tried with plot(runif(10:1), ann=F) to produce more space, but neither. The second
2007 Nov 23
0
R users in Cyprus
....ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ------------------------------ Message: 21 Date: Wed, 21 Nov 2007 15:08:10 +0100 From: "marcg" <mdgi at gmx.ch> Subject: [R] Reconstruct array dataset To: r-help at stat.math.ethz.ch Message-ID: <20071121140810.279520 at gmx.net> Content-Type: text/plain; charset="us-ascii" Hi there I have an interesting problem: My csv file is of array dimensions [12,50], but it was saved th...
2007 Oct 15
1
Save variable with loop part
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".....) I tried with paste("read", i, sep"") or to save as a vector with
2007 Nov 01
1
Start plot really at baselines x=0, y=0
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 Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden:
2008 Jan 05
1
mfrow for levelplot?
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 --
2007 Sep 26
1
add points to wireframe
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) (not provided). with follwing code I want to produce the wireframe and add some