This function calculates coordinates for a plot given x and y bounds and location represented as percentage of plot area
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
)
Numeric lowest value of x axis
Numeric highest value of x axis
Numeric lowest value of y axis
Numeric highest value of y axis
Numeric indicating location on x axis (0 - 1)
Numeric indicating location on y axis (0 - 1)
Boolean indicating if x axis is log scale
Boolean indicating if y axis is log scale