aest.f: Assign point color and shape aesthetics.

View source: R/aest_f.R

aest.fR 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.


MOSS documentation built on March 26, 2022, 1:10 a.m.