| To: | Patrick.Heer@bakom.admin.ch, s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | Re: Boxplot on factor ord |
| From: | "Richard M. Heiberger" <rmh@temple.edu> |
| Date: | Fri, 7 Oct 2005 08:45:16 -0400 |
Use an ordered factor
tmp <- data.frame(y=rnorm(21), g=factor(rep(c("C","A","B"),7)))
boxplot(split(tmp$y, tmp$g))
levels(tmp$g)
ordered(tmp$g) <- c("C","A","B")
levels(tmp$X2)
boxplot(split(tmp$y, tmp$g))
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Combine dataframes different columns, Dimitris Rizopoulos |
|---|---|
| Next by Date: | SUMMARY: irregular appearance of different line types, Jean V Adams |
| Previous by Thread: | Boxplot on factor ord, Patrick.Heer |
| Next by Thread: | Combine dataframes different columns, Bert Jacobs |
| Indexes: | [Date] [Thread] [Top] [All Lists] |