> bark_mort_tab bark_t_class burned mort23.mean mort23.nobs mort23.sum bar_labels 1 5 FALSE 0.07546049 1683 127 127/1683 2 5 TRUE 0.07022901 655 46 46/655 3 10 FALSE 0.09952978 1276 127 127/1276 4 10 TRUE 0.12126246 602 73 73/602 5 15 FALSE 0.07333333 300 22 22/300 6 15 TRUE 0.10322581 155 16 16/155 7 20 FALSE 0.10843373 166 18 18/166 8 20 TRUE 0.04411765 68 3 3/68 9 25 FALSE 0.06329114 79 5 5/79 10 25 TRUE 0.03846154 52 2 2/52 11 30 FALSE 0.05000000 40 2 2/40 12 30 TRUE 0.00000000 13 0 0/13 13 35 FALSE 0.00000000 15 0 0/15 14 35 TRUE 0.00000000 7 0 0/7 15 40 FALSE 0.12500000 8 1 1/8 16 40 TRUE 0.00000000 5 0 0/5 17 45 FALSE 0.00000000 2 0 0/2
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: http://gist.github.com/270442
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
Try to give a group explicitly:
ggplot(data = df, aes(x=class, y=val, fill=group)) +
geom_bar(stat="identity", position=position_dodge(width=1)) +
geom_text(aes(label = text_labels, y = val + 0.1, group = group),
angle = 45, alpha = 0.5, position = position_dodge(width=1))
I'm not sure but probably the text labels are ordered by their value
unless explicit group variable is defined.
kohske
2012年4月4日0:57 Winston Chang <winsto...@gmail.com>:
> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
--
--
Kohske Takahashi <takahash...@gmail.com>
Research Center for Advanced Science and Technology,
The University of Tokyo, Japan.
http://www.fennel.rcast.u-tokyo.ac.jp/profilee_ktakahashi.html