prep_kfuncs_results: Preparing results for K functions

View source: R/NEW_k_functions_sf.R

prep_kfuncs_resultsR Documentation

Preparing results for K functions

Description

Prepare the final results at the end of the execution of the main functions calculating K or G functions.

Usage

prep_kfuncs_results(
  k_vals,
  g_vals,
  all_values,
  conf_int,
  calc_g_func,
  cross,
  dist_seq,
  return_sims
)

Arguments

k_vals

a numeric vector with the real K values

g_vals

a numeric vector with the real g values

all_values

a list with the simulated K and G values that must be arranged.

conf_int

the confidence interval parameter.

calc_g_func

a boolean indicating if the G function has been calculated.

cross

a boolean indicating if we have calculated a simple (FALSE) or a cross function.

dist_seq

a numeric vector representing the distance used for calculation

return_sims

a boolean, indicating if the simulations must be returned

Value

A list with the following values :

  • plotk: A ggplot2 object representing the values of the k-function

  • plotg: A ggplot2 object representing the values of the g-function

  • values: A DataFrame with the values used to build the plots

Examples

# no example, this is an internal function

JeremyGelb/spNetwork documentation built on Jan. 18, 2025, 3:44 p.m.