CreateColorsByAny: Creates colors based on any factor in the dataframe

Description Usage Arguments Details Value

Description

Creates and/or displays dataframe of "by" variable and associated colors#'

Usage

1
CreateColorsByAny(by, df, r_pal, b_pal, output, plot, ...)

Arguments

by

variable to determine colors. Specific outcomes for: "behavior", "id", or "sex"

df

dataframe with "by" variable - only required if "by" is not "behavior", "id", or "sex"

pal

dataframe with "by" variable - only required if "by" is not "behavior", "id", or "sex"

r_pal

color palette for CreateVarsColors(), default is NULL

b_pal

color palette from RColorBrewer for CreateVarsColors(), default is "Set1".

output

color palette from RColorBrewer for CreateVarsColors(), default is "Set1"

plot

logical, whether or not to display names and colors, default is FALSE

...

additional parameters for CreateColorsByMetadata()

Details

Used in several other functions. Color palettes determined automatically for "behavior", "id", and "sex". Others set by pal or b_pal. Requires 'kml' associated functions.

Value

df with "by" variable and hexidecimal colors


Blakemassey/baear documentation built on Dec. 25, 2021, 9:48 a.m.