[R] Box Plot With Groups being numbers

Uwe Ligges ligges at statistik.tu-dortmund.de
Thu Jan 31 20:14:14 CET 2008



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



More information about the R-help mailing list