data_df_to_colors.RdConvert expression data to heatmap colors for plotting
data_df_to_colors(
df,
value_cols = NULL,
colorset = NULL,
scale = "linear",
per_col = FALSE,
min_val = 0,
max_val = NULL
)data.frame with sample_name and expression values
The value columns to convert. Default is (null), which will use all columns except sample_name
A set of colors to use for the heatmap palette. NULL will use the default for values_to_colors()
color value scaling, passed to values_to_colors(). Default = "linear".
Logical, whether or not to normalize the colorscale per-value, or across all values
Minimum value for color scale. If NULL, will be automatically computed from values. Default = 0.
Maximum value for color scale. If NULL, will be automatically computed from values. Default = 0.