nat_makehexlogo: Make hexagon logo from any kind of image

Description Usage Arguments Examples

View source: R/make_hexlogo.R

Description

This code was inspired and adapted from the make hexagon code in https://github.com/greta-dev/greta/blob/master/logos/make_hex.R

Usage

1
2
3
4
5
6
(
  rawimgpath,
  outputimgpath,
  hexbordercolour = "white",
  hexinnercolour = "red"
)

Arguments

rawimgpath

Path to the png file (that contains the actual logo)

outputimgpath

Path to the output png file that is in the form of a hex

hexbordercolour

Colour of the hexagon border

hexinnercolour

Colour to fill inside (usually give the background color of your image)

Examples

1
2
3
4
## Not run: 
(rawimgpath='logos/nat_withouthex.png',outputimgpath ='logos/nat_withhex.png')

## End(Not run)

natverse/nat.devtools documentation built on July 10, 2021, 2:02 p.m.