f_plot_distrib_3D {atRisk}R Documentation

Plot of historical distributions in 3D

Description

This function allows to create a plot in 3D of historical distributions.

Usage

f_plot_distrib_3D(
  m_param_histo,
  type_function,
  database,
  n_samples,
  x_min,
  x_max,
  x_lab,
  y_lab
)

Arguments

m_param_histo

Numeric matrix containing the parameters of the f_param_histo function

type_function

String argument specifying the distribution type ("gaussian" or "skew-t")

database

Dataframe containing the data, with dates in the first column and dependent variable in the second column

n_samples

Number optional of samples for the plot (default value = 1000)

x_min

Numeric optional argument (default value = -15)

x_max

Numeric optional argument (default value = 10)

x_lab

String optional argument for the x axis title (default value = x)

y_lab

String optional argument for the y axis title (default value = y)

Value

A plot in 3D of historical distributions

Examples

# Import data
data(data_US)

data(data_param_histo)

results_plot_3D <- f_plot_distrib_3D(m_param_histo=data_param_histo,
type_function="skew-t",
database=data_US,
x_lab="US GDP variation",
y_lab="Year")


[Package atRisk version 0.1.0 Index]