plot_legend_cont | R Documentation |
Function to create a legend
plot_legend_cont(
range = c(0, 1),
pal = NULL,
cexMain = 1,
cexSub = 0.75,
minUp = 0.175,
mainTitle = NULL,
subTitle = NULL,
n = 5,
showNA = FALSE
)
plot_legend_bin(
col,
cexMain = 1,
cexSub = 0.75,
minUp = 0.175,
mainTitle = NULL,
subTitle = NULL,
showNA = FALSE
)
range |
numeric, vector with minimal and maximal values |
pal |
character, vector of colors, or color palette |
minUp |
numeric, minimum upper side to write as a function of bbox extent |
mainTitle |
character, type of legend. Choices are 'continuous', 'binary' or 'categorical' |
subTitle |
character, type of legend. Choices are 'continuous', 'binary' or 'categorical' |
showNA |
logical, add box that shows regions identified as NA in the figure |
cex.text |
numeric, cex for legend text |
type |
character, type of legend. Choices are 'continuous', 'binary' or 'categorical' |
nTick |
numeric, number of ticks in the legend |
Opens a graphical interface with the plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.