aest.f {MOSS}R Documentation

Assign point color and shape aesthetics.

Description

This function is called by moss whenever a plot is produced. It simply assigns colors and shape to points based on input labels.

Usage

aest.f(x, n.cat = 2, option = "D")

Arguments

x

Character vector with labels, or a numerical vector to be discretized in 'n.cat' categories.

n.cat

Number of categories to split vector 'x'. Numeric. Ignored if 'x' is a character vector.

option

Controls color palette. One of the possible 'option' arguments for the 'viridis' function.

Value

A data.frame with labels as rownames and two columns representing point colors and shape, respectively.


[Package MOSS version 0.2.2 Index]