stat_bicolor {colorpatch} | R Documentation |
Plots a ratio/confidence plot using a bivariate colormap
Description
Plots a ratio/confidence plot using a bivariate colormap
Usage
stat_bicolor(mapping = NULL, data = NULL, geom = "tile",
position = "identity", na.rm = FALSE, show.legend = NA,
inherit.aes = TRUE, color.fun = HsvColorFun(), size.fun = HsvSizeFun(),
...)
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 |
Value
a ggplot statistics layer for showing bicolored maps
Examples
library(ggplot2)
library(colorpatch)
dat <- CreateExampleData()
df <- ToDataFrame(dat)
p <- ggplot(df) + theme_colorpatch() + stat_bicolor(aes(ratio=ratio,conf=conf,x=x,y=y))