Retrieve color definitions and annotations from the mask. If available, results in a named vector of colors.
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
#> well expressed striae break-off
#> "#cd7f32" "#1f376c"
#> right groove left groove
#> "#629d4b" "#800080"
#> no striae no striations
#> "#ffff00" "#66ffff"
#> vertical change in striations <NA>
#> "#ffff66" "#629d4b"
#> <NA> <NA>
#> "#800080" "#ffff00"