cw: Build a colorwheel object

Description Usage Arguments Value

View source: R/colorwheel.R

Description

Generate colorwheel components

Usage

1
2
3
cw(data, xvar, yvar, resolution = 10, fade = "white", origin = c(0, 0),
  flip = NULL, left = left <- hsv(0.5, 1, 1), bottom = hsv(0.75, 1, 1),
  right = hsv(1, 1, 1), top = hsv(0.25, 1, 1))

Arguments

data

A data frame.

xvar,

yvar Names of data frame variables, as strings.

resolution

Integer: one-dimensional granularity of raster legend.

fade

Color at center of legend.

origin

Numeric vector of length 2 indicating the x and y coordinates at the center of the colorwheel.

left

Color at left of wheel.

bottom

Color at bottom of wheel.

right

Color at right of wheel.

top

Color at top of wheel.

Value

A colorwheel object consisting of data, plots, and scales.


matthewkling/ecoclim documentation built on May 21, 2019, 1:04 p.m.