extra_breaks: Add extra breaks to a continuous scale

View source: R/breaks.R

extra_breaksR Documentation

Add extra breaks to a continuous scale

Description

Add extra breaks to default breaks of scale_continuous.

Usage

extra_breaks(extras)

Arguments

extras

a numeric vector of extra breaks.

Examples

ggplot(mpg, aes(displ, hwy)) +
  geom_point() +
  scale_y_continuous(breaks = extra_breaks(25))


pttry/ggptt documentation built on May 4, 2023, 2:48 p.m.