Description Usage Arguments Value Author(s) Examples
Takes a default matrix and embeds circles within the matrix.
1 | circle_matrix(m, n, x.center, y.center, r, f = 1)
|
m |
A |
n |
A |
x.center |
A |
y.center |
A |
r |
A |
f |
A |
A matrix
with circles imprinted within its dimensions.
James Balamuta
1 2 3 4 5 6 7 8 | # Generate a basic circle matrix
circle_matrix(10, 10, 3, 4, 2)
# Generate two circles within the matrix
circle_matrix(10, 20, c(3,6), c(4,6), c(2,2))
# Different fills
circle_matrix(10, 20, c(3,6), c(4,6), c(2,2), f = c(1,2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.