theme_colorpatch {colorpatch} | R Documentation |
A ggplot2 theme for rendering colorpatches (black background)
theme_colorpatch(fill = "black", plot.background = fill)
fill |
background fill color (default: "black") |
plot.background |
background fill color (default: "black") |
a theme function for showing color patches
library(ggplot2)
library(colorpatch)
dat <- CreateExampleData()
df <- ToDataFrame(dat)
p <- ggplot(df) + theme_colorpatch() + stat_colorpatch(aes(ratio=ratio,conf=conf,x=x,y=y))