| get_padding_from_elements {ggtikz} | R Documentation | 
Calculate length of padding from plot elements
Description
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.
Usage
get_padding_from_elements(
  gg_plot,
  elements_t,
  elements_r,
  elements_b,
  elements_l
)
Arguments
| 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 | 
Value
A vector grid::units of paddings for t, r, b, l (in pt)
See Also
uninfinite_coord for construction of the complete
replaced coordinate.
[Package ggtikz version 0.1.3 Index]