View source: R/uniform.y.axis.R
uniform.y.axis | R Documentation |
Takes a list of ggplot2 plots, compares their Y-axis ranges and applies the highest/lowest limits to each plot in order to uniform all the plots. It can be used also to set the ticks step (to just change the breaks set all parameters as FALSE
).
uniform.y.axis(
plot.list,
y.min = TRUE,
y.max = TRUE,
ticks.each = NULL,
digits = 1
)
plot.list |
A single plot or a list of plots. |
y.min |
Either a logical value to define whether uniform the lower limit or a numeric value defining the lower limit. By default |
y.max |
Either a logical value to define whether uniform the upper limit or a numeric value defining the upper limit. By default |
ticks.each |
Numeric value to define every how much should be placed a tick. By default |
digits |
A single integer indicating the maximum number of digits required for the rounding of the axis values. By default |
Returns a plot list (or a single plot when only one input plot is provided) equivalent to the input list provided by the user in which the Y-axis of all the plots will be uniformed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.