I think df.all$number
needs to be an ordered factor. Try df.all$number <- ordered(df.all$number)
More Related Contents:
- Force the origin to start at 0
- Create stacked barplot where each stack is scaled to sum to 100%
- Creating arbitrary panes in ggplot2
- Inserting an image to ggplot2
- How to set multiple legends / scales for the same aesthetic in ggplot2?
- Addressing x and y in aes by variable number
- customize ggplot2 axis labels with different colors
- Adding space between bars in ggplot2
- Center x and y axis with ggplot2
- Using `geom_line()` with X axis being factors
- Filling area under curve based on value
- Align plot areas in ggplot
- How subset a data frame by a factor and repeat a plot for each subset?
- Is it possible to define the “mid” range in scale_fill_gradient2()?
- percentage on y lab in a faceted ggplot barchart?
- Fill region between two loess-smoothed lines in R with ggplot
- How to produce different geom_vline in different facets in R?
- ggplot2, facet_grid, free scales?
- Add legend to geom_line() graph in r
- Using different scales as fill based on factor
- Force ggplot legend to show all categories when no values are present [duplicate]
- modifying ggplot objects after creation
- Greek letters, symbols, and line breaks inside a ggplot legend label
- how do you order Months in ggplot
- How to get geom_vline to honor facet_wrap?
- The perils of aligning plots in ggplot
- When does the argument go inside or outside aes()?
- R ggplot ordering bars within groups
- ggplot for loop outputs all the same graph
- Make a rectangular legend, with rows and columns labeled, in grid