View source: R/LG_explain_plot.R
LG_explain_plot | R Documentation |
This function gives information about the content of the different plots created by this package.
LG_explain_plot(
.plot_details,
.mode = NULL,
.digits_for_points = 2,
.digits_for_percentiles = 0
)
.plot_details |
This can either be a saved plot created by
this package, or it can be the details-list directly. (The
latter alternative is included to simplify the use of this
function inside of |
.mode |
Specify the mode that the result will be returned in.
Two modes are supported, "markdown" and "latex". The default
value |
.digits_for_points |
An integer (default value |
.digits_for_percentiles |
An integer that specifies the number
of decimals to include when presenting the percentiles (of the
standard normal distribution) that corresponds to the point.
The default value is |
This function is used as an internal function by
LG_shiny
, but it can also be used when a plot is to be
included in an article/presentation. In the latter case the
plot must first be saved to an object, and that object can then
be given to this function in the argument .plot_details
.
The returned text is based on the information stored in the
attribute named details
, and an advanced user can of
course opt for a solution where the relevant information is
extracted directly from details
and presented according
to his/hers own preferences,
The returned result will be a description of the plot in
.plot_details
, in the mode specified by .mode
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.