powered by
Fortify method for classes from the raster package.
# S3 method for RasterLayer fortify(x, maxpixels = 50000)# S3 method for RasterBrick fortify(...)# S3 method for RasterStack fortify(...)
# S3 method for RasterBrick fortify(...)
# S3 method for RasterStack fortify(...)
Raster* object to convert into a dataframe.
Raster*
Integer. Maximum number of pixels to sample
not used by this method
Returns a data.frame with coordinates (x,y) and corresponding raster values.
# NOT RUN { library(ggplot2) data(rlogo) r_df <- fortify(rlogo) head(r_df) # }
Run the code above in your browser using DataLab