colmat {bivariatemaps}R Documentation

colmat: Create a Color Matrix

Description

Creates a color matrix to be used in bivariate.map() function.

Usage

colmat(
  nquantiles = 10,
  upperleft = "blue",
  upperright = "red",
  bottomleft = "grey",
  bottomright = "yellow",
  xlab = "x label",
  ylab = "y label"
)

Arguments

nquantiles

numeric variable for number of quantiles in color matrix

upperleft

upperleft color of color matrix

upperright

upperright color of color matrix

bottomleft

bottomleft color of color matrix

bottomright

bottomright color of color matrix

xlab

character variable

ylab

character variable

Value

Two outputs: a color matrix object to be used in bivariate.map() function, and a plot of the color matrix.

Examples

col.matrix<-colmat(nquantiles=10, xlab="My x label", ylab="My y label")

# https://rfunctions.blogspot.com/2015/03/bivariate-maps-bivariatemap-function.html

[Package bivariatemaps version 1.3 Index]