CreateExampleData {colorpatch} | R Documentation |
Creates demonstration data of the colorpatch package
Description
Creates demonstration data of the colorpatch package
Usage
CreateExampleData(nrow = 30, ncol = 12)
Arguments
nrow |
number of rows (default 30) |
ncol |
number of columns (default 12) |
Value
the data set
Examples
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)
[Package colorpatch version 0.1.2 Index]