Learn R Programming

geohabnet (version 2.1.3)

gplot: Plot a Raster* object

Description

This is a wrapper for terra::plot()

Usage

gplot(x, ...)

Value

a plot

Arguments

x

a Raster* object

...

additional arguments passed to terra::plot()

Examples

Run this code
r <- terra::rast(nrows=108, ncols=21, xmin=0, xmax=10)
gplot(r)
gplot(r, col = "red")
gplot(r, col = "red", breaks = 10)

Run the code above in your browser using DataLab