plotReilly | R Documentation |
This function plots the raster produced by the
rasterReilly
function.
plotReilly(x, add = FALSE, col = rainbow)
x |
raster; output of the |
add |
logical; if TRUE the raster is added to the current plot, if FALSE the raster is displayed in a new plot. |
col |
function; color ramp function, such as |
Display the raster nicely.
reilly, rasterReilly.
data(hospital)
# Compute Reilly catchment areas from known points (hospital) on a
# grid defined by its resolution
myreilly <- reilly(knownpts = hospital, varname = "capacity",
typefct = "exponential", span = 1250, beta = 3,
resolution = 200, mask = paris, returnclass = 'sf')
# Create a raster of reilly values
myreillyraster <- rasterReilly(x = myreilly, mask = paris)
# Plot the raster nicely
plotReilly(x = myreillyraster)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.