Re: [R] plotmeans
The par(new = TRUE)-Trick seems to be fine, if you just want to add one or two other lines. Whenever I plot a couple of graphs ontop of each other i find that the nice vectorgraphics become cluttered. Is there any way to use plotmeans() and to restrict it to the line only? Sincerly Henning -- View this message in context: http://r.789695.n4.nabble.com/plotmeans-tp2271405p3673297.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.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.
Re: [R] plotmeans
On 17.07.2011 14:36, h_bumann wrote: The par(new = TRUE)-Trick seems to be fine, if you just want to add one or two other lines. Whenever I plot a couple of graphs ontop of each other i find that the nice vectorgraphics become cluttered. Is there any way to use plotmeans() and to restrict it to the line only? - Please also reply to the original poster who may not be subscribed to the list. - Please cite the original question (and other relevant parts of the thread) since some readers of this list will delete messages before an answer arrives. Uwe Ligges Sincerly Henning -- View this message in context: http://r.789695.n4.nabble.com/plotmeans-tp2271405p3673297.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.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. __ R-help@r-project.org mailing list https://stat.ethz.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.
Re: [R] plotmeans
Thanks a lot. ?HTH :) Regards, Cheba 2010/6/28 Jannis bt_jan...@yahoo.de Try adding par(new=TRUE) after plotting the first plot and then just plot the second one. You have to make sure that both use the same y axis but I will leave it to you to find out how ;-) (I would fix the y limits of both plots...) HTH Jannis cheba meier schrieb: Hello, I am using library(gplots) to do something like data(state) x1 - state.area/1 x2 - x1+round((rnorm(length(state.area),3,3))) plotmeans(x1 ~ state.region) Is it possible to plot x2 to x1 in the same graph, something like: linesmeans(x2 ~ state.region) Best wishes, Cheba [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.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. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.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.
[R] plotmeans
Hello, I am using library(gplots) to do something like data(state) x1 - state.area/1 x2 - x1+round((rnorm(length(state.area),3,3))) plotmeans(x1 ~ state.region) Is it possible to plot x2 to x1 in the same graph, something like: linesmeans(x2 ~ state.region) Best wishes, Cheba [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.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.
Re: [R] plotmeans
Try adding par(new=TRUE) after plotting the first plot and then just plot the second one. You have to make sure that both use the same y axis but I will leave it to you to find out how ;-) (I would fix the y limits of both plots...) HTH Jannis cheba meier schrieb: Hello, I am using library(gplots) to do something like data(state) x1 - state.area/1 x2 - x1+round((rnorm(length(state.area),3,3))) plotmeans(x1 ~ state.region) Is it possible to plot x2 to x1 in the same graph, something like: linesmeans(x2 ~ state.region) Best wishes, Cheba [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.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. __ R-help@r-project.org mailing list https://stat.ethz.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.
Re: [R] plotmeans in trellis view?
I'm not sure about plotmeans but this is usually the way I plot means with lattice: library(lattice) x - runif(48, 2, 70) data - data.frame(x) data$factor1 - factor(c(A, B, C, D)) data$factor2 - factor(c(X, Y, Z)) data.mean - with(data, aggregate(data$x, by=list(factor1=factor1, factor2=factor2), mean)) with(data.mean, xyplot(x~factor1 | factor2)) Is this sort of what you were looking for? HTH, Sam -- View this message in context: http://r.789695.n4.nabble.com/plotmeans-in-trellis-view-tp2065860p2065945.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.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.
[R] plotmeans in trellis view?
Is there a way to use plotmeans function of Gplots in a trellis view with the trellis groups defined by a column? -- View this message in context: http://r.789695.n4.nabble.com/plotmeans-in-trellis-view-tp2065860p2065860.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.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.
[R] plotMeans() is there a ylim argument? Please Help.
I can not seem to get a ylim argument into plotMeans() is there anyway to do this. thanks in advance Stephen -- Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.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.
Re: [R] plotMeans() is there a ylim argument? Please Help.
Try plotmeans in the gplots package. On Tue, Jun 10, 2008 at 5:14 PM, stephen sefick [EMAIL PROTECTED] wrote: I can not seem to get a ylim argument into plotMeans() is there anyway to do this. thanks in advance Stephen -- Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.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. __ R-help@r-project.org mailing list https://stat.ethz.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.