parse_palette {PantaRhei}R Documentation

Parse the information from a 'palette' definition table.

Description

This function checks the content of a palette definition, and appends some missing columns. It is mainly used internally, but can be invoked by the uses to see what it does.

Usage

parse_palette(palette, verbose = TRUE)

Arguments

palette

data.frame containing the palette definition

verbose

logical: print some information?

Value

modified palette data.frame

Examples

p0 <- data.frame(substance="any", color="red")
str(p0)
p1 <- parse_palette(p0)
str(p1) # Should be the same!

[Package PantaRhei version 0.1.2 Index]