Tumblr Engineering

Tumblr Engineering

Tumblr Engineering

Dispatches from the intrepid tinkerers behind technology at Tumblr.

  • Archive
  • Adam Laiacano: Re-organizing factors in ggplot2 plots

    adamlaiacano:

    When you have a factor with many levels and want to see a histogram, it’s always more useful to see them sorted in some kind of order. An example of this is shown below:

    labels <- c( rep("a", 100*rexp(1)), rep("b", 100*rexp(1)), rep("c", 100*rexp(1)), rep("d", 100*rexp(1)))
    x <-...

    October 4, 2011

    Posted by derekg

    ♥ 206

Team blogs:

  • Staff
  • Design
  • Editorial
  • Engineering
  • International
  • Support
  • English
  • Deutsch
  • Español
  • Français
  • Italiano
  • 日本語
  • Pусский
  • Polski
  • Português (BR)
  • Português (PT)
  • Türkçe

© 2007-2012 All rights reserved. TUMBLR is a registered trademark of Tumblr, Inc.