View source: R/SkeweDF_functions.R
This function calculates coordinates for a plot given x and y bounds and location represented as percentage of plot area
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
)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.