[R] ggplot: geom_bar not respecting factor order when stacking

2016-02-04 Thread Alexander Shenkin
Hi all, ggplot2 (v2.0.0) does not seem to respect factor order when stacking bars in geom_bar(). ## > dput(temp) structure(list(phylo_sig = c(0.148740270638472, 0.148740270638472, 0.148740270638472, 0.148740270638472, 0.148740270638472), trait = c("p_corrected_percent",

Re: [R] ggplot: geom_bar not respecting factor order when stacking

2016-02-04 Thread PIKAL Petr
ginal Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of > Alexander Shenkin > Sent: Thursday, February 04, 2016 11:24 AM > To: r-help@r-project.org > Subject: [R] ggplot: geom_bar not respecting factor order when stacking > > Hi all, > > ggplot2