create.cols.from.array: Creates HSV colors from an array

create.cols.from.arrayR Documentation

Creates HSV colors from an array

Description

If split.hsv = FALSE, the feature with the highest value in a spot will define the color for that spot. The intensity of the color will depend on if dark.theme is active and the magnitude of the feature value in that spot.

Usage

create.cols.from.array(
  data,
  d,
  features,
  cols,
  split.hsv,
  dark.theme,
  add.alpha
)

Arguments

data

data.frame with feature values

d

array created with create.array.from.vals function

features

Feature names

cols

Custom colors

split.hsv

Should the features be plotted separately?

dark.theme

Used to select what channel the feature values should be encoded in

add.alpha

Adds opacity to the output colors, defined by the scaled feature values


jbergenstrahle/STUtility documentation built on March 14, 2023, 7:15 a.m.