CreateExampleData: Creates demonstration data of the colorpatch package

Description Usage Arguments Value Examples

View source: R/colorpatch_impl.R

Description

Creates demonstration data of the colorpatch package

Usage

1

Arguments

nrow

number of rows (default 30)

ncol

number of columns (default 12)

Value

the data set

Examples

1
2
3
4
5
6
7
library(ggplot2)
library(colorpatch)
dat <- CreateExampleData()
df <- ToDataFrame(dat)
p <- ggplot(df, aes(x = x, y = y, ratio = ratio, conf = conf)) 
p <- p + theme_colorpatch() + coord_fixed(ratio = 1)  + stat_colorpatch()
plot(p)

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