Skip to contents

Symbol Mapping

Usage

palette_shape(symbols = NULL, domain = NULL, ordered = FALSE, ...)

palette_line(types = NULL, domain = NULL, ordered = FALSE, ...)

Arguments

symbols, types

A vector of symbols or line types.

domain

A vector of categorical data specifying the possible values that can be mapped.

ordered

A logical scalar: should the levels be treated as already in the correct order?

...

Currently not used.

Value

A palette function that when called with a single argument (a character vector of categorical values) returns a vector of symbols.