raster: Color plot a matrix built on top of 'ggplot2"s 'geom_raster'

Description Usage Arguments Value

Description

Color plot a matrix built on top of ggplot2's geom_raster

Usage

1
raster(mat, type = c("factor", "numeric"))

Arguments

mat

matrix to be plotted

type

whether mat's values represent a quantitative (numeric) or qualitative (factor) variable

Value

The ggplot element is returned as invisible. It is also displayed in the graphical window


goepp/hazreg documentation built on June 7, 2019, 4:03 a.m.