R/color_mapping_functions.R
extend_group.Rd
Extends the number of subgroups shown for one particular group by adding additional colors.
extend_group(
mdf,
cdf,
group_level,
subgroup_level,
group_name,
existing_palette,
new_palette,
n_add = 5,
light = TRUE
)
melted data frame with microshades group processing
color data frame
string of larger taxonomic group
string of smaller taxonomic group
name of the group to extend the palette for
name of current palette of group to extend
name of new palette to add for extending the particular group's colors
number of colors to add
orientation of colors added; will make a difference if n_add is less than the number of colors in the new palette
list
"mdf"new mdf with reclassified groups that include the group exention
"cdf"new cdf with reclassified groups that include the group exention
updated_objs <- extend_group(mdf, cdf, "Phylum", "Genus", "Firmicutes", "micro_purple", "micro_cvd_purple")
#> Error in eval(expr, envir, enclos): object 'mdf' not found
updated_objs$mdf
#> Error in eval(expr, envir, enclos): object 'updated_objs' not found
updated_objs$cdf
#> Error in eval(expr, envir, enclos): object 'updated_objs' not found