Description Usage Arguments Value Examples
View source: R/colorpatch_ggplot.R
A ggplot2 theme for rendering colorpatches (black background)
1 | 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
1 2 3 4 5 | 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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.