load.image | R Documentation |
PNG, JPEG and BMP are supported via the readbitmap package. You'll need to install ImageMagick for other formats. If the path is actually a URL, it should start with http(s) or ftp(s).
load.image(file)
file |
path to file or URL |
an object of class 'cimg'
#Find path to example file from package fpath <- system.file('extdata/Leonardo_Birds.jpg',package='imager') im <- load.image(fpath) plot(im) #Load the R logo directly from the CRAN webpage #load.image("https://cran.r-project.org/Rlogo.jpg") %>% plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.