| break_inc | R Documentation |
ggplot's scale_x/y_continuousAllows faceted free_x and free_y scales to have same break increments
break_inc(inc = 10, sf = 0.05, ...)
inc |
increments |
sf |
scaling factor (multiplicative expand) - higher |
library(ggplot2)
ggplot(data = iris, aes(x = Petal.Width, y = Sepal.Length)) +
geom_point() +
facet_grid( ~ Species, scales = "free") +
scale_x_continuous(breaks=break_inc(inc=0.1, sf=.05),
expand = c(0.05, 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.