Learn R Programming

xROI (version 0.1.1)

plotJPEG: Plot JPEG image

Description

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

Usage

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

Arguments

path

path to the JPEG file to be plotted.

add

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

xlim

x axis range

ylim

y axis range

Value

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

Examples

Run this code
# NOT RUN {
f <- system.file(package = 'xROI', 'dukehw.jpg')
plotJPEG(f)

# }

Run the code above in your browser using DataLab