Convert 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
)

Arguments

df

data.frame with sample_name and expression values

value_cols

The value columns to convert. Default is (null), which will use all columns except sample_name

colorset

A set of colors to use for the heatmap palette. NULL will use the default for values_to_colors()

scale

color value scaling, passed to values_to_colors(). Default = "linear".

per_col

Logical, whether or not to normalize the colorscale per-value, or across all values

min_val

Minimum value for color scale. If NULL, will be automatically computed from values. Default = 0.

max_val

Maximum value for color scale. If NULL, will be automatically computed from values. Default = 0.