Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/vi.grid.illusion.R
The two most common types of grid illusions are Hermann grid illusions and Scintillating grid illusions. This function provides illustrations for both illusions.
1 2 3 4 5 6 7 8 |
nrow |
number of rows for the grid |
ncol |
number of columns for the grid |
lwd |
line width for grid lines |
cex |
magnification for points in Scintillating grid illusions |
col |
color for grid lines |
type |
type of illusions: |
A grid illusion is any kind of grid that deceives a person's vision.
This is actually a static image; pay attention to the intersections of the grid and there seems to be some moving points (non-existent in fact).
NULL
Yihui Xie
1 2 3 4 5 | ## default to be Scintillating grid illusions
vi.grid.illusion()
## set wider lines to see Hermann grid illusions
vi.grid.illusion(type = "h", lwd = 22, nrow = 5, ncol = 5, col = "white")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.