Nothing
#' Displays an image plot.
#'
#' Displays a .jpg, .jpeg, .png, or .tiff image file containing a plotted
#' figure, or plots an EBImage object.
#'
#' @param file The file name and location of a plot figure or EBImage object.
#' Prompts for file name if nothing is explicitly called. Preferably in .jpg
#' format.
#' @param browser When \code{"TRUE"}, displays the figure image in the default
#' web browser.
#'
#' @return An \code{EBImage} object figure.
#'
#' @seealso \link{figure_read}
#'
#' @export
figure_display <- function (file = file.choose(),
browser = FALSE) {
# if EBImage not installed, do it
.metagearDependencies("EBImage")
aFigure <- file
if(class(aFigure) != "Image") aFigure <- EBImage::readImage(aFigure)
if(browser == TRUE) {
EBImage::display(aFigure)
} else {
EBImage::display(aFigure, method = "raster")
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.