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 -- Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis
Try: plot(as.factor(rivermile), measurements) On Jan 31, 2:02 pm, "stephen sefick" <ssef... at gmail.com> 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 > -- > Let's not spend our time and resources thinking about things that are > so little or so large that all they really do for us is puff us up and > make us feel like gods. We are mammals, and have not exhausted the > annoying little problems of being mammals. > > -K. Mullis > > ______________________________________________ > R-h... at r-project.org mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
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? > > StephenGiven your "data" is in a data.frame: boxplot(data, names = gsub("^X", "", names(data))) Uwe Ligges