image_canvas_hex | R Documentation |
Produces canvas and border for assembling hex sticker
image_canvas_hex( border_color = "black", border_size = 2, fill_color = "azure", outer_margin = "10x10", scope = FALSE, scope_color = "grey80" ) image_canvas_hexborder( border_color = "black", border_size = 2, outer_margin = "10x10" )
border_color |
color of the hex border. Default: 'black' |
border_size |
border thickness. Default: 2 |
fill_color |
hex background. Default: 'azure' |
outer_margin |
margin around the hex. May be helpful for making sure nothing gets trimmed. Default: '10x10' |
scope |
logical. Add measurement grid to the center of the hex (similar to rifle scope). |
scope_color |
color of the grid. Default "grey80". |
Border around the sticker can be later trimmed either by the printing company or by 'magick::image_trim()'. It is preferred to not choose white background or white border to prevent excessive trimming. Requires 'ggplot' and 'ggforce' installed. 'image_canvas_hexborder()' produces transparent hex with specified border color.
image of hex canvas
transform
,color
,attributes
,painting
## Not run: if(interactive()){ image_canvas_hex() } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.