[R] subset and plot

From: Marlin Keith Cox <marlinkcox_at_gmail.com>
Date: Mon, 21 Apr 2008 15:56:15 -0800


create a subset for "brook_dis". When I plot (week, R) I get a nice

   boxplot, but along the x axis, there are weeks a, b, c along with h and nh.

   Thank you ahead of time. keith
   rm(list=ls())
   cond.exp1<-read.csv("condition/test.csv",header=TRUE)    sub<-subset(cond.exp1, Species=="brook_dis")    attach(sub)
   plot(week, R)
   detach(sub)
    Id Species week 7 bow a 10 bow a 12 bow a 19 bow a 23 bow a 24 bow a

   25 bow a 26 bow a 27 bow a 28 bow a 32 bow a 39 bow a 7 bow b 10 bow

   b 12 bow b 19 bow b 23 bow b 24 bow b 25 bow b 26 bow b 27 bow b  28
   bow b 32 bow b 39 bow b 7 bow c 10 bow c 12 bow c 19 bow c 23 bow c

   24 bow c 25 bow c 26 bow c 27 bow c 28 bow c 32 bow c 39 bow c 84    brook_dis h 85 brook_dis h 86 brook_dis h 87 brook_dis h 88 brook_dis h

   89 brook_dis h 90 brook_dis h 91 brook_dis nh 92 brook_dis nh 93    brook_dis nh 94 brook_dis nh 95 brook_dis nh 96 brook_dis nh 97

-- 
Keith Cox, Ph.D.
Sitka Sound Science Center
Fisheries Biologist
P.O. Box 464
Sitka, Alaska, 99835

907 752-0563
marlinkcox_at_gmail.com

	[[alternative HTML version deleted]]

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 21 Apr 2008 - 23:58:37 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 22 Apr 2008 - 00:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive