Description Usage Arguments Value Examples
View source: R/colorpatch_impl.R
Creates demonstration data of the colorpatch package
1 | CreateExampleData(nrow = 30, ncol = 12)
|
nrow |
number of rows (default 30) |
ncol |
number of columns (default 12) |
the data set
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.