recolour: Use palette from ColorBrewer to recolour the image.

Description Usage Arguments Value

View source: R/recolour.R

Description

Use palette from ColorBrewer to recolour the image.

Usage

1
2
3
4
5
recolour(x, palette = "Blues", zero_colour = NA, invert = FALSE,
  trans = log1p)

recolor(x, palette = "Blues", zero_colour = NA, invert = FALSE,
  trans = log1p)

Arguments

x

Matrix

palette

ColorBrewer palette. This value is passed to scales::col_numeric()

zero_colour

Colour to use for zero and NA values

invert

If TRUE, inverts the colour scale

trans

Transformation function, defaulting to log1p()

Value

Matrix


andrie/attractor documentation built on May 13, 2019, 11:56 p.m.