Plot the map composition of a raster layer in a radial neighborhood of a point.

plot_map_zoom(file, x, cells, radius, classes, col, title = NULL,
  class_order = seq_along(classes), base_path = ".", width = 1000,
  height = 1000)

Arguments

file

character, output file.

x

raster layer. Should be discretely valued/categorical.

cells

cell numbers, typically defining a radial clump, but will accept any valid cells numbers.

radius

in meters, catering to NAD83 Alaska Albers projected ALFRESCO map output.

classes

character, the names of the classes assigned to the unique values in x.

col

color vector the same length as lasses and the number of unique non-NA values in x.

title

character, plot title.

class_order

integer vector, optional reordering of classes when the ordered values in x are not the desired order.

base_path

character, defaults to working directory.

width

numeric, plot width in pixels.

height

numeric, plot height in pixels.

Value

nothing is returned, but a file is saved to disk.

Details

This function saves a png to disk of a radial buffer around a point. It is used for zooming in spatially around points of interest in raster layers such as those output by ALFRESCO.

Examples

# not run