[R] boxplot
carol white
wht_crl at yahoo.com
Thu Mar 21 09:40:59 CET 2013
Hi,
It must be an easy question but how to boxplot a subset of data:
data = read.table("my_data.txt", header = T)
boxplot(data$var1[data$loc == "nice"]~data$loc_type[data$loc == "nice"])
#in this case, i want to display only the boxplot loc == "nice"
#doesn't display the boxplot of only loc == "nice". It also displays loc == "mice"
Thanks
Carol
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: my_data.txt
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130321/bd22ee3f/attachment.txt>
More information about the R-help
mailing list