Skip to contents

Show x axis guides with ticks at integers

Usage

scale_x_counting(breaks = 0:10000, ...)

Arguments

breaks

numeric vector where breaks should be placed

...

Value

ggplot2 scale function

Examples

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