| setPlotOptions {profExtrema} | R Documentation |
Set-up the plot options when NULL
Description
Function to set-up plot options for plot_univariate_profiles_UQ, plotBivariateProfiles, coordinateProfiles, coordProf_UQ, obliqueProfiles and obliqueProf_UQ.
Usage
setPlotOptions(plot_options = NULL, d, num_T, kmModel = NULL)
Arguments
plot_options |
the list of plot options to set-up |
d |
number of coordinates |
num_T |
number of thresholds of interest |
kmModel |
a km model, used to obtain the coordinates names. |
Value
the properly set-up list containing the following fields
save:boolean, if TRUE saves the plots infolderPlotsfolderPlots:a string containing the destination folder for plots, ifsave==TRUEdefault is./ylim:a matrixcoordx2 containing the ylim for each coordinate, if NULL inplot_optionsthis is left NULL and automatically set at the plot time.titleProf:a string containing the title for the coordinate profile plots, default is"Coordinate profiles"title2d:a string containing the title for the 2d plots (if the input is 2d), default is"Posterior mean"design:adxrmatrix wheredis the input dimension andris the size of the discretization for plots at each dimensioncoord_names:ad-vector of characters naming the dimensions. If NULL andkmModelnot NULL then it is the names ofkmModel@Xotherwisex_1,...,x_did_save:a string to be added to the plot file names, useful for serial computations on HPC, left as inplot_options.qq_fill:if TRUE it fills the region between the first 2 quantiles inquantiles_uqand between the upper and lower bound inobjectUQ$bound$bound, ifNULL, it is set asFALSE.bound_cols:a vector of two strings containing the names of the colors for upper and lower bound plots.qq_fill_colors:a list containing the colors for qq_fill:approxfor 2 quantiles,bound_minfor bounds on the profile inf,bound_maxfor profile sup. Initialized only ifqq_fill==TRUE.col_CCPthresh_nev:Color palette of dimensionnum_Tfor the colors of the vertical lines delimiting the intersections between the profiles sup and the thresholdscol_CCPthresh_alw:Color palette of dimensionnum_Tfor the colors of the vertical lines delimiting the intersections between the profiles inf and the thresholdscol_thresh:Color palette of dimensionnum_Tfor the colors of the thresholdsfun_evals:integer denoting the level of plot for the true evaluations.0: default, no plots for true evaluations;
1: plot the true evaluations as points in 2d plots, no true evaluation plots in 1d;
2: plot true evaluations, in 2d with different color for values above threshold;
3: plot true evaluations, in 2d plots in color, with background of the image colored as proportion of points inside excursion;
if all the fields are already filled then returns plot_options
Author(s)
Dario Azzimonti