You need to add
+ scale_y_continuous(breaks = seq(0, 100, by = 20))
EDIT: Per comment below, this only works if axis already in the appropriate range. To enforce the range you can extend above code as follows:
+ scale_y_continuous(limits = c(0, 100), breaks = seq(0, 100, by = 20))
More Related Contents:
- ggplot with 2 y axes on each side and different scales
- ggplot2 line chart gives “geom_path: Each group consist of only one observation. Do you need to adjust the group aesthetic?”
- Plot multiple columns on the same graph in R [duplicate]
- Remove space between plotted data and the axes
- How to use an image as a point in ggplot?
- How to put labels over geom_bar in R with ggplot2
- Wrap long axis labels via labeller=label_wrap in ggplot2
- Plot multiple lines in one graph [duplicate]
- What do hjust and vjust do when making a plot using ggplot?
- how to add layers in ggplot using a for-loop
- How do I change the formatting of numbers on an axis with ggplot? [duplicate]
- Making a stacked bar plot for multiple variables – ggplot2 in R
- Explain ggplot2 warning: “Removed k rows containing missing values”
- Place a border around points
- draw the sum value above the stacked bar in ggplot2
- Change ggplot factor colors
- double dots in a ggplot
- Removing the border of legend symbol
- Group data and plot multiple lines
- how to change the color in geom_point or lines in ggplot [duplicate]
- How to fill with different colors between two lines? (originally: fill geom_polygon with different colors above and below y = 0 (or any other value)?)
- Change the default colour palette in ggplot
- ggplot geom_point() with colors based on specific, discrete values
- How to label a barplot bar with positive and negative bars with ggplot2
- GGplot custom scale transformation with custom ticks
- Asymmetric expansion of ggplot axis limits
- How to adjust facet size manually
- How to add shaded confidence intervals to line plot with specified values
- Removing Unused Factors from a Facet in ggplot2
- R – What algorithm does geom_density() use and how to extract points/equation of curves?