Learn R Programming

geocausal (version 0.3.2)

sim_cf_dens: Simulate counterfactual densities

Description

`sim_cf_dens()` takes a list of power densities and returns simulated counterfactual densities.

Usage

sim_cf_dens(
  expected_number,
  base_dens,
  power_sim_results,
  window,
  grayscale = FALSE,
  color = c("white", "#F8DAC5FF", "#F4825AFF", "#D2204CFF", "#771F59FF")
)

Value

list of counterfactual densities, a ggplot, and priorities

Arguments

expected_number

the expected number of observations

base_dens

the baseline density (im object)

power_sim_results

the results obtained by `simulate_power_density()`

window

owin object

grayscale

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

color

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