theme_colorpatch {colorpatch}R Documentation

A ggplot2 theme for rendering colorpatches (black background)

Description

A ggplot2 theme for rendering colorpatches (black background)

Usage

theme_colorpatch(fill = "black", plot.background = fill)

Arguments

fill

background fill color (default: "black")

plot.background

background fill color (default: "black")

Value

a theme function for showing color patches

Examples

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))

[Package colorpatch version 0.1.2 Index]