Description Usage Arguments Value See Also Examples
Render a plot image of the 2D brick mosaic with optional title.
1 | build_mosaic(brick_obj, title = NULL)
|
brick_obj |
List output from image_to_bricks(). Contains an element |
title |
Optional title to include above plotted mosaic. |
A single plot object to display 2D mosaic.
Other Mosaics:
image_to_mosaic()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # Import a jpeg or png
demo_file <- system.file("extdata", "demo_img.jpg",
package = "brickr", mustWork = TRUE)
demo_image <- jpeg::readJPEG(demo_file)
#Build a very small 12x12 mosaic.
demo_image %>%
image_to_mosaic(12) %>%
build_mosaic()
#Build a mosaic in the default size of 48x48 studs with title
demo_image %>%
image_to_mosaic() %>%
build_mosaic("Demo mosaic")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.