Fortify method for classes from the raster package.
Fortify method for classes from the raster package.
## S3 method for class 'RasterLayer' fortify(x, maxpixels = 50000) ## S3 method for class 'RasterBrick' fortify(...) ## S3 method for class 'RasterStack' fortify(...)
x |
|
maxpixels |
Integer. Maximum number of pixels to sample |
... |
not used by this method |
Returns a data.frame with coordinates (x,y) and corresponding raster values.
library(ggplot2) data(rlogo) r_df <- fortify(rlogo) head(r_df)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.