Learn R Programming

wingen (version 2.1.1)

ggplot_count: Plot moving window map of sample counts

Description

Plot sample counts layer produced by window_gd or krig_gd

Usage

ggplot_count(x, index = NULL, col = viridis::mako(100))

Value

list of ggplots

Arguments

x

single SpatRaster of counts or SpatRaster where indexed layer is sample counts

index

index of raster layers to plot (defaults to plotting the one called "sample_count", if more than one layer is provided)

col

color palette to use for plotting (defaults to viridis::mako palette)

Examples

Run this code
data("mini_lyr")
ggplot_count(mini_lyr)

Run the code above in your browser using DataLab