theme_colorpatch: A ggplot2 theme for rendering colorpatches (black background)

Description Usage Arguments Value Examples

View source: R/colorpatch_ggplot.R

Description

A ggplot2 theme for rendering colorpatches (black background)

Usage

1
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

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

colorpatch documentation built on May 1, 2019, 10:28 p.m.