Re: [R] how to generate pairwise plots with data frames - tia

From: Sarah Goslee <sarah.goslee_at_gmail.com>
Date: Tue 07 Jun 2005 - 07:19:53 EST

Peter,

Please read the intro to R available on the R web page - you've run into a subsetting problem. The code you specified doesn't select a column from your matrix.

> plot(test[1], test[2)

Try:

plot(test[,1], test[,2])

since test is a two-dimensional construct.

Also see

?pairs

-- 
Sarah Goslee
http://www.stringpage.com

______________________________________________
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
Received on Tue Jun 07 07:24:18 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:23 EST