Displaying 1 result from an estimated 1 matches for "verysevere".
Did you mean:
persevere
2010 Jan 26
5
Strange tick in ggplot geom_area; and ordering, again
...get it to work in the example.
Dieter
library(ggplot2)
cf1 = structure(list(dur = c(10L, 10L, 10L, 10L, 10L, 150L, 150L,
150L, 150L, 150L), score = structure(c(3L, 1L, 4L, 5L, 2L, 3L,
1L, 4L, 5L, 2L), .Label = c("none", "weak", "moderate", "severe",
"verysevere"), class = c("ordered", "factor")), p = c(0.04, 0.02,
0.26, 0.6, 0.07, 0.07, 0.05, 0.33, 0.42, 0.14)), .Names = c("dur",
"score", "p"), class = c("cast_df", "data.frame"))
# columns do not ad to 100% because of rounding; ne...