plotJPEG: Plot JPEG image

Description Usage Arguments Value Examples

View source: R/plotJPEG.R

Description

This funciton plots a jpeg image as a raster given image path.

Usage

1
plotJPEG(path, add = FALSE, xlim = NULL, ylim = NULL)

Arguments

path

a character string. path to the JPEG file to be plotted.

add

logical. logical variable whether to add the image to the existing graphics.

xlim

numeric vector of lenght 2, x axis range

ylim

numeric vector of lenght 2, y axis range

Value

This function returns statistical metrics for each color channel. The function returns NULL, if dimensions do not agree.

Examples

1
2
f <- system.file(package = 'xROI', 'dukehw.jpg')
if (interactive() ) plotJPEG(f)

bnasr/xROI documentation built on June 7, 2021, 7:56 a.m.