suggestSize | R Documentation |
Suggest plot dimensions for a given raster
suggestSize(input, max)
input |
The raster being plotted |
max |
the desired size for the longest edge |
A width/height vector (rounded)
# Import river shapefile
water <- actel::shapeToRaster(shape = paste0(system.file(package = "RSP"), "/River_latlon.shp"),
size = 0.0001, buffer = 0.05)
# Find suggested size to save projected map
suggestSize(water, max = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.