Displays the image in the current device.

plot_image(input, rotate = 0, keep_user_par = 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)).

...

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

Examples

#Plot the dragon array plot_image(dragon)