R/plotting_functions.R
get_color_dataframe_from_input.RdGet color dataframe from shiny::colorInput
get_color_dataframe_from_input( input, levels_selected, color_by = c("sample_id", "total_counts"), input_id_prefix = "color_" )
| input | Shiny input object |
|---|---|
| levels_selected | Names of the features |
| color_by | Which feature color to retrieve |
| input_id_prefix | Prefix in front of the feature names |
A data.frame with the feature levels and the colors of each level of this feature.