add_sf_lab | R Documentation |
Add labels of quantile difference values to one or more shift function plots. Used in the README.md file to illustrate the shift function. Assumes an odd number of quantiles with the median in the middle.
add_sf_lab( p, sf, labres = 2, link_col = c("darkviolet", "darkorange2"), link_alpha = c(0.4, 1), y_lab_nudge = 0, text_size = 5 )
p |
A list of ggplot objects generated by |
sf |
A list of data frames generated by |
labres |
Number of decimales for the labels - default = 2. |
link_col |
Label colours for negative and positive values. |
link_alpha |
Alpha transparency of the labels - default = continuum between 0.4 and 1. |
y_lab_nudge |
Amount by which to nudge the labels along the y axis. |
text_size |
Text size - default = 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.