expand_ylim | R Documentation |
Set y-axis limits in a way which is useful for the output from
nested_loop_plot
. Makes functionality from
expand_scale
available.
expand_ylim(p, y_expand_limits = 0)
p |
ggplot2 object, Output from |
y_expand_limits |
A named list or a numeric vector. If a list, then the names of the list should correspond to facet panels of the plot and the entries should be numeric vectors, which apply the scale expansion only to the specified facets. |
Often helpful to deal with clipping issue when e.g. text is not fully displayed within the plot.
This function makes sure that any value in y_expand_limits
is visible
in the plot.
A ggplot2 object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.