LG_plot_helper_extract_data_only: Extract only data for the plots

View source: R/LG_plot_helper_extract_data_only.R

LG_plot_helper_extract_data_onlyR Documentation

Extract only data for the plots

Description

This internal function is used to extract the underlying data for a plot created by LG_plot_helper.

Usage

LG_plot_helper_extract_data_only(main_dir, input, input_curlicues = NULL, .env)

Arguments

main_dir

The part of the data_dir-argument from the function LG_shiny, that specifies the main path to where the information is stored. Note that this argument only is required when the function is called outside of the shiny application. (Inside of the shiny-application, the relevant information will be extracted from .env.)

input

A list with the arguments needed in order to extract the desired data for the plot of interest.

input_curlicues

A list that can be used when this function is used outside of the shiny-application. This can be used to fine-tune details related to the annotated information. It is also possible to drop annotation from the plot, which might be of interest when many plots are to be included in a grid-based setup. The default value NULL will ensure that the plot will be created with the same setting that was used in the shiny-application (this might however not produce decent-looking plots when a grid of plots is created and saved to file).

.env

An environment in which .arr will be updated. This argument can be skipped when called in a non-interactive setting.

Details

This function is primarily a helper function used during the development of new plots. Some of the scripts might also use this function, but that is intended as a temporary solution.

Value

This internal function will extract the underlying data from the plot created by the LG_plot_helper-function. The result is given as a list containing the following two nodes.

..env

An environment containing the underlying data.

look_up

A list containing the chunks of information that the internal functions need in order to extract the correct data for the specified plot. This list does also include details needed in order for the explanation of the content of the plots.


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