Skip to content
Prev 71213 / 398498 Next

how to generate pairwise plots with data frames - tia

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.
Try:

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

since test is a two-dimensional construct.

Also see

?pairs