Skip to contents

Show x axis guides with ticks at integers

Usage

theme_axis_x_truncated()

Arguments

breaks

numeric vector where breaks should be placed

...

Value

ggplot2 theme function to indicate that x is right censored

Examples

library(ggplot2)
ggplot(tidy_dbinom(1/6, num_trials = 8)) +
  aes(x = num_successes) +
  scale_x_counting() +
  aes(y = probability) +
  geom_lollipop() +
  theme_axis_x_truncated()