[R] using [i] to plot label all vector elements

2003-07-02 Thread Robert Schick
I'm using 1.6.2 on a win 2k box. (I know I'm due for an upgrade.) I've used brute force to label a series of vectors, and I'm wondering if there's a better way to do this. I wanted to create a biplot of the 2nd 3rd PCs, and did this: test - edit(loadings(cv.prc.spr)) test.1 - test[,1] test.2 -

[R] color coding a legend

2003-06-10 Thread Robert Schick
I'm using R 1.6.2 on a Windows 2000 machine. I've plotted the results of an MDS run labeled by a numerical ID, and color coded by a group code: plot(cv.mds.spr$points, type=n, main=Non-Metric Multidimensional Scaling of SprRun CV Watersheds) text(cv.mds.spr$points, labels =

[R] Re: color coding a legend - solved?

2003-06-10 Thread Robert Schick
) Advice? Robert Schick wrote: I'm using R 1.6.2 on a Windows 2000 machine. I've plotted the results of an MDS run labeled by a numerical ID, and color coded by a group code: plot(cv.mds.spr$points, type=n, main=Non-Metric Multidimensional Scaling of SprRun CV Watersheds) text(cv.mds.spr

[R] subset with NA

2003-02-19 Thread Robert Schick
Easy question that I can't find an answer for. I'm trying to subset a data frame and want to exclude the positive values, i.e. I want the NA values. My data: summary(temp$tuna) Min. 1st Qu. MedianMean 3rd Qu.Max.NA's 1 2 3 3 4 51211

[R] Conditioned file Import?

2003-01-27 Thread Robert Schick
I'm using R 1.6.2 on Windows 2000. I have two similar sets of files in two different directories. One contains species presence data and environmental measurements; the other contains species absence data and environmental measurements for the same variables as the presence data. The absence