recolor_phylopic {rphylopic} | R Documentation |
Recolor a PhyloPic image
Description
Function to recolor and change alpha levels of a PhyloPic image.
Usage
recolor_phylopic(
img,
alpha = 1,
color = NULL,
fill = NULL,
remove_background = TRUE
)
Arguments
img |
A Picture or png array object, e.g.,
from using |
alpha |
|
color |
|
fill |
|
remove_background |
|
Details
Some PhyloPic silhouettes do not have a transparent background.
Consequently, when color is used with vectorized versions of these images,
the entire image–including the background–is recolored. Setting
remove_background
to TRUE
(the default) will remove any white parts of
the image (which should only be the background).
Value
A Picture or png array object (matching
the type of img
)
See Also
Other transformations:
flip_phylopic()
,
rotate_phylopic()