Learn R Programming

rayimage (version 0.9.1)

plot_image: Plot Image

Description

Displays the image in the current device.

Usage

plot_image(
  input,
  rotate = 0,
  keep_user_par = FALSE,
  asp = 1,
  new_page = TRUE,
  return_grob = FALSE,
  ...
)

Arguments

input

Image or filename of an image to be plotted.

rotate

Default 0. Rotates the output. Possible values: 0, 90, 180, 270.

keep_user_par

Default TRUE. Whether to keep the user's par() settings. Set to FALSE if you want to set up a multi-pane plot (e.g. set par(mfrow)).

asp

Default 1. Aspect ratio of the pixels in the plot. For example, an aspect ratio of 4/3 will slightly widen the image.

new_page

Default TRUE. Whether to call grid::grid.newpage() before plotting the image.

return_grob

Default FALSE. Whether to return the grob object.

...

Additional arguments to pass to the raster::plotRGB function that displays the map.

Examples

Run this code
#if(interactive()){
#Plot the dragon array
plot_image(dragon)
#end}

Run the code above in your browser using DataLab