Re: [R] Subset and point plot

2010-02-02 Thread Peter Ehlers
I tried your code and a funny thing happened: I got an error object 'Foodin' not found Hmmm; could you try to post something _reproducible_ (and minimal, please)? But here are some suggestions: 1. investigate '%in%' 2. put a comma after Wgt in your plot call 3. see what you get from c("red"

[R] Subset and point plot

2010-02-02 Thread Marlin Keith Cox
OK, I need help plotting. I have column headings of Day, Wgt, Foodin, Rep, Grp and Tanks. Rep=c(1,2,3) and Tanks=c(a1,a2,a3,a4,a5,a6, c1,c2,c3,c4,c5,c6, h1,h2,h3,h4,h5,h6). I created a subset where I only would like Rep=2, and Tanks=c(a4,c4,h4) and would like to graph (points) of Wgt and Day. I