incontri per sesso lugano Change the order of discrete axis.
donde conocer chicas de san cristóbal de entreviñas Generate a factor with reversed levels or use a new ggplot2 option.
randek truss Examples.
df$X1 = with(df, factor(X1, levels = rev(levels(X1))))
http://stackoverflow.com/questions/7418191/sorting-dotplot-factor-axis-in-ggplot
flevels <- levels(PlantGrowth$group)
- Reverse the order of a discrete-valued axis
- Get the levels of the factor
flevels <- rev(flevels)
- "ctrl" "trt1" "trt2"
- Reverse the order
bp + scale_x_discrete(limits=flevels)
- "trt2" "trt1" "ctrl"
http://www.cookbook-r.com/Graphs/Axes_(ggplot2)/#reversing-the-direction-of-an-axis