pxmap: Creates a pixelated map

View source: R/load.R

pxmapR Documentation

Creates a pixelated map

Description

This is a wrapper function calling R package 'pixelate'^[https://github.com/aimeertaylor/pixelate] developed by Aimee Taylor and colleagues ^[https://doi.org/10.48550/arXiv.2005.11993] providing tools to plot disease risk mapping with a visual representation of spatial uncertainty, as a function of pixel size.

Usage

pxmap(
  mapobj = maps,
  nbigk = c(17, 17),
  bigk = 4,
  scaleft = 1,
  legname = "Median\nCum. risk"
)

Arguments

mapobj

string, name of list, output of function 'outraster()'

nbigk

vector with length 2, specifies the minimum number of large pixels in the x and y directions, respectively.

bigk

integer, specifies the number of average quantile intervals (i.e. number of different pixel sizes).

scaleft

integer, specifies a factor (in units of observations) that features in either iterative multiplication or iterative exponentiation (see 'scale_factor' arg in 'pixelate::pixelate() for more details).

legname

character, legend title.

Details

As input you should provide the result returned by 'outraster()' (a list of 'RasterLayer' objects) and additional arguments required for pixelation.

Value

'pxmap()' is used to map disease risk with varying pixel sizes showing spatial uncertainty generated by block direct sequential simulation algorithm.


maluicr/blockdss documentation built on Nov. 22, 2023, 11:42 a.m.