minor_breaks_width | R Documentation |
Generate minor breaks between major breaks either spaced with a fixed width, or having a fixed number.
minor_breaks_width(width, offset)
minor_breaks_n(n)
width |
Distance between each break. Either a number, or for
date/times, a single string of the form |
offset |
Use if you don't want breaks to start at zero, or on a
conventional date or time boundary such as the 1st of January or midnight.
Either a number, or for date/times, a single string of the form
|
n |
number of breaks |
demo_log10(c(1, 1e6))
if (FALSE) {
# Requires https://github.com/tidyverse/ggplot2/pull/3591
demo_log10(c(1, 1e6), minor_breaks = minor_breaks_n(10))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.