colmat | R Documentation |
Creates a color matrix to be used in bivariate.map() function.
colmat(
nquantiles = 10,
upperleft = "blue",
upperright = "red",
bottomleft = "grey",
bottomright = "yellow",
xlab = "x label",
ylab = "y label"
)
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 |
Two outputs: a color matrix object to be used in bivariate.map() function, and a plot of the color matrix.
col.matrix<-colmat(nquantiles=10, xlab="My x label", ylab="My y label")
# https://rfunctions.blogspot.com/2015/03/bivariate-maps-bivariatemap-function.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.