Displaying 1 result from an estimated 1 matches for "rsfreq".
2012 Feb 06
1
ggplot2 geom_polygon fill
...t;,
"4"="red",
"5"="darkred",
"6"="black"))
barwidth = 0.6
# good looks defined
smalldummy = data.frame(
mRS = as.factor(rep(0:6,2)),
rsfreq = sample(0:6,14,replace=T),
treatment = factor(rep(c("one","two"),each=7))
)
smalldummy = ddply(smalldummy, .(treatment), transform,
textpos = cumsum(rsfreq/sum(rsfreq)) -
rsfreq/sum(rsfreq)/2, # center within segment
lineposx = cumsum(...