Description Usage Arguments See Also Examples
View source: R/downlaod_inat_images.R
Download iNaturalist images
1 2 3 4 5 6 7 8 | downlaod_inat_images(
dat,
size = "medium",
outpath = ".",
img_format = NULL,
firstonly = TRUE,
verbose = TRUE
)
|
dat |
data frame containing iNaturalist records |
size |
image size. Values accepted are "small", "medium", "large", "original". Deafault(medium). |
outpath |
path to the output folder |
img_format |
image formating parameters in the form of list. Detailed
documentation is in the function |
firstonly |
All images need to be downloaded or only first for each iNaturalist record |
verbose |
should messges on progress to be displayed |
Other image functions:
format_image()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | ## Not run:
font <- "Times"
fontsize <- 18
fontstyle <- NA
fontcolor <- "white"
myfmt <- NULL
myfmt[[1]] <- c("border","black","20x50")
myfmt[[2]] <- c("border","grey", "2x2")
myfmt[[3]] <- c("annotate",c('"\u00A9"', 'photoby','" "'),font,fontstyle,
fontcolor, fontsize,"southeast")
myfmt[[4]] <- c("annotate",c('" "','scname'),font,"italic",
fontcolor,fontsize,"northwest")
myfmt[[5]] <- c("annotate",c('"\\n "', 'cname'),font,fontstyle,
fontcolor, fontsize,"northwest")
myfmt[[6]] <- c("annotate",c('" "','place','"\\n "', 'photodate'),font,fontstyle,
fontcolor, fontsize,"southwest")
myfmt[[7]] <- c("annotate",c('"iNat Id \\n "','obs_id','" "'),font,fontstyle,
fontcolor, fontsize,"northeast")
# Get some iNaturalist data for a butterfly Idea malabarica
inatdata <- get_inat_obs(query = "Idea malabarica",maxresults = 5)
downlaod_inat_images(inatdata,size="medium", outpath=".", img_format=myfmt,
firstonly=TRUE,verbose=TRUE)
# Get some iNaturalist data for a user
inatdata <- get_inat_obs_user("vijaybarve", maxresults = 5)
downlaod_inat_images(inatdata,size="medium", outpath=".", img_format=myfmt,
firstonly=TRUE,verbose=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.