powered by
This funciton plots a jpeg image as a raster given image path.
plotJPEG(path, add = FALSE, xlim = NULL, ylim = NULL)
a character string. path to the JPEG file to be plotted.
logical. logical variable whether to add the image to the existing graphics.
numeric vector of lenght 2, x axis range
numeric vector of lenght 2, y axis range
This function returns statistical metrics for each color channel. The function returns NULL, if dimensions do not agree.
# NOT RUN { f <- system.file(package = 'xROI', 'dukehw.jpg') if (interactive() ) plotJPEG(f) # }
Run the code above in your browser using DataLab