View source: R/fortify-raster.R
fortifySpatRaster | R Documentation |
Fortify method for classes from the terra package.
fortifySpatRaster(x, maxpixels = 50000)
x |
|
maxpixels |
Integer. Maximum number of pixels to sample |
Returns a data.frame with coordinates (x,y) and corresponding raster values.
r_df <- fortifySpatRaster(rlogo)
head(r_df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.