This package is used to create randomized, tesselation-based patterns using isoceles right triangles. Pattern developments were inspired by quilting designs.
The current way to install this package is only through GitHub:
if (!require("devtools")) install.packages("devtools")
devtools::install_github("btmonier/quiltr")
To get a randomize quilting “data set”, simply use the following:
qDS <- quiltr::quiltr()
With this object, basic S3 methodologies can be implemented:
print(qDS)
#> A quiltr data set:
#> Class..... quiltr
#> Dim (x)... 3
#> Dim (y)... 3
summary(qDS)
#> Color usage:
#> #AACBFF [===============----------] (44)
#> #E0E0E0 [==========---------------] (28)
#> ---
#> Total units: 72
Probably the most important method to use would be plot()
:
plot(qDS)
To generate larger canvases with customized colors and probabilities, we can use the following implementation:
# Plot with unequal color probabilities
qds <- quiltr::quiltr(
x = 10,
y = 10,
col = c("#DCD0C0", "#C0B283", "#F4F4F4"),
prob = c(0.2, 0.7, 0.1)
)
plot(qds, sym = "reflect")
Last updated: 2019-02-16
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.