Learn R Programming

geocausal (version 0.3.2)

sim_power_dens: Simulate power densities

Description

A function that takes the target densities and their priorities and returns a power density image over a range of parameters

Usage

sim_power_dens(
  target_dens,
  dens_manip,
  priorities,
  priorities_manip,
  window,
  color = c("white", "#F8DAC5FF", "#F4825AFF", "#D2204CFF", "#771F59FF"),
  grayscale = FALSE
)

Value

list of densities, plot, and priorities

Arguments

target_dens

list of target densities. This should always be a list, even if there is only one target density.

dens_manip

a target density for which we manipulate the value of priorities

priorities

numeric. `priorities` specifies the priority for the target density that we do not manipulate.

priorities_manip

vector of priorities for the density that we manipulate.

window

owin object

color

the color scale. By default, "white", "#F8DAC5FF", "#F4825AFF", "#D2204CFF", and "#771F59FF".

grayscale

logical. `grayscale` specifies whether to convert plot to grayscale (by default, FALSE).