View source: R/display.array.R
| display.array | R Documentation |
This function is to create a 2D tiled image from the R array/tensor obtained from Google image search.
display.array(x, Save = FALSE, file_path = NULL)
x |
a list obtained by the GoogleImage2array function. |
Save |
a logical. Whether to save images locally or not. if TRUE, save locally. |
file_path |
a character. a directory to save the image file. |
image
Satoshi Kume
# Simple examples
query <- "persian cat"
CatImg <- GoogleImage2array(query)
#show images
display.array(CatImg)
query <- "Shiba inu"
DogImg <- GoogleImage2array(query)
#show images
display.array(DogImg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.