Learn R Programming

bivariatemaps (version 1.7)

colmat: 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"
)

Value

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

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

Examples

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

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

Run the code above in your browser using DataLab