Re: [R] plotmeans

From: Jannis <bt_jannis_at_yahoo.de>
Date: Tue, 29 Jun 2010 00:00:37 +0200

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/10000
> 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_at_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_at_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. Received on Mon 28 Jun 2010 - 22:02:58 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 29 Jun 2010 - 10:50:45 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive