Learn R Programming

SkeweDF (version 0.1.0)

calculate_label_coords: Label Coordinate Calculate Helper Function

Description

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

Usage

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