The make.groups function did the trick. Thank you so much for the seemingly
obvious solution!


piedfac <- read.table("C:/R_PLots/piedmontfacfreqs.txt", header=TRUE,
sep=",", na.strings="NA", dec=".", strip.white=TRUE)
coastfac <- read.table("C:/R_PLots/coastalfacfreqs.txt", header=TRUE,
sep=",", na.strings="NA", dec=".", strip.white=TRUE)
fac<-make.groups(piedfac,coastfac)
xyplot(fac$rank.PRank~fac$basin_area,groups=fac$which,scales=list(y=list(log
=TRUE,at=c(.0001,.001,.01,.1,1)),x=list(log=TRUE,at=c(10,100,1000,10000,1000
00,1000000))),xlab="Drainage Area m^2",ylab="P(A>A*)")
 




Thomas Colson, PhD
North Carolina State University
Department of Forestry and Environmental Resources
(919)673-8023
[EMAIL PROTECTED]

Schedule: www4.ncsu.edu/~tpcolson   
-----Original Message-----
From: Deepayan Sarkar [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 17, 2007 11:19 PM
To: Thomas Colson
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] "Groups" in XYPLOT

On 3/17/07, Thomas Colson <[EMAIL PROTECTED]> wrote:
>  Thanks for the warning:
> Here is the link to the datasets, rather large at 2 and 5 mb. Another 
> note is that one set has more datapoints than the other, don't know if 
> this can be done with xyplot.

As long as the two datasets have the same column name, you should be able to
use the 'make.groups' function to combine them. The resulting data frame
should have a column called 'which' identifying the origin.

Deepayan

______________________________________________
R-help@stat.math.ethz.ch 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.

Reply via email to