Learn R Programming

OpenImageR (version 1.1.7)

imageShow: display an image

Description

This function displays an image

Usage

imageShow(file_path)

Arguments

file_path

if file_path is a character string, then a shiny application is utilized. If file_path is a matrix, data.frame OR a 3-dimensional array then the grid.raster function of the base grid package is used.

Value

displays an image

Details

This function displays an image using either a character path, a 2- or a 3-dimensional object.

Examples

Run this code
# NOT RUN {
# path = system.file("tmp_images", "1.png", package = "OpenImageR")

# imageShow(path)

# }

Run the code above in your browser using DataLab