Creative Commons License
This blog by Tommy Tang is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

My github papge

Tuesday, January 3, 2017

reorder boxplot according to median

3 comments:

  1. Fill colors legend isn't ordering according graph now.

    ReplyDelete
    Replies
    1. Thanks. need to do geom_boxplot(aes(fill = fct_reorder(Species, Sepal.Width, fun = median, .desc =TRUE)))
      and fix the legend title.

      Delete