x3p_mask_legend: Get legend for mask colors

View source: R/x3p_mask_legend.R

x3p_mask_legendR Documentation

Get legend for mask colors

Description

Retrieve color definitions and annotations from the mask. If available, results in a named vector of colors.

Usage

x3p_mask_legend(x3p)

Arguments

x3p

x3p object with a mask

Value

named vector of colors, names show annotations. In case no annotations exist NULL is returned.

Examples

x3p <- x3p_read(system.file("sample-land.x3p", package="x3ptools"))
x3p_mask_legend(x3p) # annotations and color hex definitions

x3ptools documentation built on May 29, 2024, 10:33 a.m.