CreateCategoricalLegend: Creates a categorical legend for a map

Description Usage Arguments Details Value

View source: R/gis.R

Description

Creates a legend for categorical data

Usage

1
2
3
Usage: CreateCategoricalLegend (metadata, metadata_layer, color_alpha,
  pos_x, pos_y, main, main_cex, main_col, lab_col, signif_digits, left,
  plot_new)

Arguments

metadata

location of metadata .csv file. Metadata file must contain "id" and "icon_color" columns.

metadata_layer

not required, column name in metadata used for legend labels

color_alpha

two-digit rbga alpha value, "00" to "ff".

pos_x

relative position of left and right edge of color bar on first axis, [0,1]. Default is c(0.5, 0.55).

pos_y

relative position on lower and upper edge of colar bar on second axis, [0,1]. Default is c(0.05, 0.9).

main

main title, written above the color bar. Default is NA.

main_cex

relative size of main title. Default is 1.

main_col

color of main title, default is "black".

lab_col

color labels, default is "black".

left

logical indicating whether to put the labels on the left (TRUE) or on the right (FALSE). Default is FALSE.

plot_new

logical indicating whether to create a new plot, default is TRUE.

Details

Used in ExportKMLPolygon()

Value

Plot of legend for categorical data


Blakemassey/gisr documentation built on Aug. 30, 2020, 12:14 a.m.