getimg | R Documentation |
Finds and imports PNG, JPEG, and/or BMP images.
getimg(imgpath = getwd(), subdir = FALSE, subdir.names = FALSE, max.size = 1)
imgpath |
(required) either the full file-path or URL to an image (including extension), or the path to a folder in which multiple image files are located. Mixed file formats within a folder are accepted. |
subdir |
should subdirectories within the |
subdir.names |
should subdirectory path be included in the name of the
images? (defaults to |
max.size |
maximum size of all images to be allowed in memory, in GB. Defaults to
|
a image, or list of images, of class rimg
, for use in further
pavo
functions.
Thomas E. White thomas.white026@gmail.com
# Single image
papilio <- getimg(system.file("testdata/images/butterflies/papilio.png", package = "pavo"))
# Multiple images
snakes <- getimg(system.file("testdata/images/snakes", package = "pavo"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.