Skip to content
Prev 310645 / 398506 Next

order in stacked barplot

Posting guide warns you to provide a reproducible example, which would include enough data to test code.

As a general point of information I can say that data ordering in R graphs is normally driven by the factor level ordering, and you usually have to specify that explicitly when you convert from character to factor.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
kay <kay.luebke at uni-rostock.de> wrote: