If you have the scales
package, you can use pretty_breaks()
without having to manually specify the breaks.
q + geom_bar(position='dodge', colour="black") +
scale_y_continuous(breaks= pretty_breaks())
More Related Contents:
- Several questions on ggplot2 [closed]
- Multirow axis labels with nested grouping variables
- How to change legend title in ggplot
- Conditionally change panel background with facet_grid?
- ggplot2 keep unused levels barplot
- Plot correlation matrix into a graph
- Using two scale colour gradients ggplot2 [duplicate]
- Get values and positions to label a ggplot histogram
- Adding percentage labels to a bar chart in ggplot2
- Avoid clipping of points along axis in ggplot
- How can I order the months chronologically in ggplot2 short of writing the months out?
- Issue with geom_text when using position_dodge
- Remove all of x axis labels in ggplot [duplicate]
- How to put a geom_sf produced map on top of a ggmap produced raster
- Connecting across missing values with geom_line
- In ggplot2, what do the end of the boxplot lines represent?
- Add a horizontal line to plot and legend in ggplot2
- How to use subscripts in ggplot2 legends [R]
- ggplot2: How to use same colors in different plots for same factor
- Removing one tableGrob when applied to a box plot with a facet_wrap
- R: ggplot2 barplot and error bar
- ggplot2 – The unit of size
- Saving grid.arrange() plot to file
- How to plot a Stacked and grouped bar chart in ggplot?
- Apply a ggplot-function per group with dplyr and set title per group
- Overlay two ggplot2 stat_density2d plots with alpha channels
- Sort legend in ggplot2
- ggplot: Boxplot of multiple column values [duplicate]
- SI prefixes in ggplot2 axis labels
- Administrative regions map of a country with ggmap and ggplot2