display | R Documentation |
Image
Objectdisplay
displays Image
objects in special
windows created by newDisplay
(or creates it if it does not
exist yet). This function is faster than the generic plot.Image
function for displaying Image
objects, but cannot be used in
combination with base R plotting utilities.
display(
image,
window_name = "Display",
delay = 25,
height = 480,
width = 640,
interpolation = "linear"
)
image |
An |
window_name |
A character string representing the name of the display window (default: "Display"). |
delay |
The delay in milliseconds during which an image is displayed before it can be replaced by another image. |
height |
An integer representing the height in pixels of the display window. |
width |
An integer representing the width in pixels of the display window. |
interpolation |
A character string representing the type of interpolation to use if the display size is different from the image size (default: "linear"). It can be any of the following:
|
This function does not return anything.
Simon Garnier, garnier@njit.edu
Image
, newDisplay
, destroyDisplay
,
plot.Image
## Not run:
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
display(balloon, height = nrow(balloon), width = ncol(balloon))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.