Description Usage Arguments Details Value
Creates and/or displays dataframe of "by" variable and associated colors#'
1 | CreateColorsByAny(by, df, r_pal, b_pal, output, plot, ...)
|
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() |
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.
df with "by" variable and hexidecimal colors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.