get_color_dataframe_from_input: Get color dataframe from shiny::colorInput

View source: R/plotting_functions.R

get_color_dataframe_from_inputR Documentation

Get color dataframe from shiny::colorInput

Description

Get color dataframe from shiny::colorInput

Usage

get_color_dataframe_from_input(
  input,
  levels_selected,
  color_by = c("sample_id", "total_counts"),
  input_id_prefix = "color_"
)

Arguments

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

Value

A data.frame with the feature levels and the colors of each level of this feature.


vallotlab/ChromSCape documentation built on Oct. 15, 2023, 1:47 p.m.