LG_plot_load: Load files to be used during the interactive inspection of...

View source: R/LG_plot_load.R

LG_plot_loadR Documentation

Load files to be used during the interactive inspection of the plots

Description

This internal function takes care of some details related to the loading of files needed for the creation of a plot, and it then stores the result in the environment given to the .env-argument. It does this both for the interactive solution in LG_shiny and for the non-reactive solution used when plots are created for the use in papers/presentations.

Usage

LG_plot_load(look_up, .env, .extract_LG_data_only)

Arguments

look_up

A list created by LG_lookup (in the function LG_plot_helper), where the key details have been extracted (or constructed) from a (non-reactive copy) of the values defined by the shiny-interface of LG_shiny.

.env

The environment in which the loaded data will be stored.

.extract_LG_data_only

Logical argument, default value FALSE. The value FALSE will ensure that a plot is created, whereas the value TRUE is used when the desired outcome is an object containing the estimated local Gaussian values.

Value

The required data will be loaded from files into .env, but only if it hasn't been done before. The resulting array will then be assigned to the environment of the calling function under the name given by .result.


LAJordanger/localgaussSpec documentation built on May 6, 2023, 4:31 a.m.