plot_legend: Plot legend

plot_legend_contR Documentation

Plot legend

Description

Function to create a legend

Usage

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
)

Arguments

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

Value

Opens a graphical interface with the plot


EffetsCumulatifsNavigation/ceanav documentation built on April 17, 2023, 1:02 p.m.