Re: [R] Box Plot With Groups being numbers

From: Uwe Ligges <ligges_at_statistik.tu-dortmund.de>
Date: Thu, 31 Jan 2008 20:14:14 +0100

stephen sefick wrote:
> I would like to Summarize values that are repeated measures at a
> certain river mile with box plot i.e.
>
> The data matrix looks like this
> 123 124 125 #fiver mile
> 0.5 0.6 0.7
> 0.4 0.5 0.6
> ... ... ... #values
>
> I would like to make a boxplot with the river mile naming the
> different box plot. How do you suppress the X123?
>
> Stephen

Given your "data" is in a data.frame:

boxplot(data, names = gsub("^X", "", names(data)))

Uwe Ligges



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 Thu 31 Jan 2008 - 19:22:16 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 Thu 31 Jan 2008 - 20:30:12 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