weightedColourMeans: Calculate weighted mean colour

View source: R/general.purpuse.utilities.R

weightedColourMeansR Documentation

Calculate weighted mean colour

Description

Weights are normalized per row by total

Usage

weightedColourMeans(cols, weights)

Arguments

cols

vector of colors (any notation)

weights

matrix with number of columns equal to the length of cols (in same order).

Value

vector of colours (length equal to nrow of weights)


iaaka/visutils documentation built on Jan. 17, 2025, 11:29 p.m.