. Carrillo
Supervisory Fishery Biologist
Department of the Interior
US Fish & Wildlife Service
California, USA
--- On Fri, 10/16/09, Duijvesteijn, Naomi wrote:
> From: Duijvesteijn, Naomi
> Subject: [R] two graphs 1 x-axis
> To: "r-help@r-project.org"
> Date: Friday,
Hi Naomi,
Take a look at the lattice package for plotting. An example using your data:
library(lattice)
library(reshape)
a<-c(1,2,3,4,5,6)
b<-c(3,5,4,6,1,1)
c<-c(1,1,1,1,1,1)
bla = data.frame(a,b,c)
# melt is from reshape
bla2 = melt(bla, id.vars = "a")
xyplot(value~a | variable, bla2,
layout
On Fri, Oct 16, 2009 at 12:22:06PM +0200, Duijvesteijn, Naomi wrote:
> I have a question concerning plotting graphs.
> Here an example dataset
>
>
> a<-c(1,2,3,4,5,6)
> b<-c(3,5,4,6,1,1)
> c<-c(1,1,1,1,1,1)
> d<-as.data.frame(cbind(a,b,c))
> plot.new()
> plot(d$a, d$b, col="red")
> par(new=TRUE)
On 10/16/2009 09:22 PM, Duijvesteijn, Naomi wrote:
Dear R-people
I have a question concerning plotting graphs.
Here an example dataset
a<-c(1,2,3,4,5,6)
b<-c(3,5,4,6,1,1)
c<-c(1,1,1,1,1,1)
d<-as.data.frame(cbind(a,b,c))
plot.new()
plot(d$a, d$b, col="red")
par(new=TRUE)
plot(d$a,d$c, col="red"
Dear R-people
I have a question concerning plotting graphs.
Here an example dataset
a<-c(1,2,3,4,5,6)
b<-c(3,5,4,6,1,1)
c<-c(1,1,1,1,1,1)
d<-as.data.frame(cbind(a,b,c))
plot.new()
plot(d$a, d$b, col="red")
par(new=TRUE)
plot(d$a,d$c, col="red", pch="|")
What I would want is to plot de second p
5 matches
Mail list logo