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

Sarah Goslee sarah.goslee at gmail.com
Mon Jun 6 23:19:53 CEST 2005


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




More information about the R-help mailing list