adjust_ylim | R Documentation |
Set y-axis limits in a way which is useful for the output from
nested_loop_plot
. Makes functionality of
expand_scale
available.
adjust_ylim(p, y_expand_mult = NULL, y_expand_add = NULL)
y_expand_mult |
NULL, a named list or a vector of length 2.
Used for adjustments to the display area similar
to what |
y_expand_add |
NULL, a named list or a vector of length 2.
Used for adjustments to the display area similar
to what |
Often helpful to deal with clipping issue when e.g. text is not fully displayed within the plot.
This function extends the axis range via additive or multiplicative factors.
Note that all numeric values are converted to absolute values (i.e. this function can not be used to shrink the y-axis).
A ggplot2 object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.