stat_colorpatch {colorpatch} | R Documentation |
A stat function for the use with ggplot2
Description
A stat function for the use with ggplot2
Usage
stat_colorpatch(mapping = NULL, data = NULL, geom = "tile",
position = "identity", na.rm = FALSE, show.legend = NA,
inherit.aes = TRUE, color.fun = ColorPatchColorFun(),
size.fun = ColorPatchSizeFun(), ...)
Arguments
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. |
geom |
Defaults to |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
color.fun |
Color function mapping a (ratio,conf) pair to a color (defaults to |
size.fun |
Size function mapping a (ratio,conf) pair to a rectangle size (defaults to |
... |
Further arguments given to the colorpatch::StatColorPatch ggproto object. Here thresh.ratio, thresh.conf are the most important parameters. |
Value
a ggplot statistics layer for showing color patches