Description Usage Arguments Value Author(s) Examples
This function recolours and plots a picture. Not perfect, needs improvement.
1 2 3 4 5 6 7 8 9 | addPhylopic(
img,
x = NULL,
y = NULL,
ysize = NULL,
alpha = 0.2,
color = NULL,
AR = 1
)
|
img |
array a picture loaded by |
x |
numeric the x coordinate of the center of the picture. |
y |
numeric the y coordinate of the center of the picture. |
ysize |
numeric a facteur to resize picture dimensions. |
alpha |
numeric transparency factor between 0 (transparent) and 1 (opaque). |
color |
array a color name (e.g. "red", "steelblue") or an hexadecimal value (e.g. "#ff0000") |
AR |
array a magnification factor (zoom). |
This function returns a picture matrix with colors and/or transparency altered.
This matrix can be plotted with the function graphics::rasterImage()
(see examples).
Nicolas CASAJUS, nicolas.casajus@fondationbiodiversite.com
1 | # No example.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.