The hexwall.R
file contains one function hexwall()
, which can be used to generate an image that neatly arranges a folder of hexagons. It makes use of the ImageMagick library via the ROpenSci package magick to arrange the images.
There are several arguments allowing some control over the function's operation.
source("hexwall.R")
#> Linking to ImageMagick 6.9.7.4
#> Enabled features: fontconfig, freetype, fftw, lcms, pango, x11
#> Disabled features: cairo, ghostscript, rsvg, webp
hexwall("samplehex", sticker_row_size = 3, sticker_width = 200)
hexwall.Rproj
)source("hexwall.R")
hexwall()
function to make your hexagon wall.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.