calculate_label_coords: Label Coordinate Calculate Helper Function

Description Usage Arguments

View source: R/SkeweDF_functions.R

Description

This function calculates coordinates for a plot given x and y bounds and location represented as percentage of plot area

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
calculate_label_coords(
  x_lower_bound,
  x_upper_bound,
  y_lower_bound,
  y_upper_bound,
  x_buffer = 0.5,
  y_buffer = 0.5,
  log_scale_x = FALSE,
  log_scale_y = FALSE
)

Arguments

x_lower_bound

Numeric lowest value of x axis

x_upper_bound

Numeric highest value of x axis

y_lower_bound

Numeric lowest value of y axis

y_upper_bound

Numeric highest value of y axis

x_buffer

Numeric indicating location on x axis (0 - 1)

y_buffer

Numeric indicating location on y axis (0 - 1)

log_scale_x

Boolean indicating if x axis is log scale

log_scale_y

Boolean indicating if y axis is log scale


SkeweDF documentation built on Jan. 16, 2021, 5:38 p.m.