get_padding_from_elements | R Documentation |
To prevent overlap with panel borders or axis lines, annotations are clipped to a viewport that is reduced in size by the width of these lines. They depend on the current plot theme.
get_padding_from_elements(
gg_plot,
elements_t,
elements_r,
elements_b,
elements_l
)
gg_plot |
A ggplot2 object. |
elements_t |
character vector with names of elements to consider for padding at the top |
elements_r |
character vector with names of elements to consider for padding on the right |
elements_b |
character vector with names of elements to consider for padding at the bottom |
elements_l |
character vector with names of elements to consider for padding on the left |
A vector grid::unit
s of paddings for t
, r
, b
, l
(in pt)
uninfinite_coord
for construction of the complete
replaced coordinate.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.