Learn R Programming

materialmodifier (version 1.2.0)

im_load: Load image from file or URL

Description

Load image from file or URL

Usage

im_load(file, name)

Value

an array of image data

Arguments

file

path to file or URL

name

a string for name attribute. if missing, inferred from the file argument.

Examples

Run this code
if (FALSE) {
# load an image from disk
im = im_load("path/to/your/image.jpg")
plot(im)
}
# load an image from URL
im = im_load("http://placehold.jp/150x150.png")

Run the code above in your browser using DataLab