plot_2D: Wrapper Function for 2D Input Plots

Description Usage Arguments Value

View source: R/plot_funcs.R

Description

To better understand the model, we can visualize it, however due to universal limitations, plots are only availabe for X inputs of 2 dimentions. ie: only two factors included on the regresion.

Usage

1
plot_2D(Y, X, bpwpm_params, n = 10, alpha = 0.6, f_of_0 = TRUE)

Arguments

Y

A response vector of size n

X

An input matrix of size n*2.

bpwpm_params

an object of the class bpwpm_params of bpwpm_prediction created by the functions posterior_params or predict.bpwpm respectively that contains all the info about the posterior parametres of the model.

n

Thinness of grid for 2D and 3D projectction

alpha

numeric - level of transparency for 2D projection

f_of_0

Logical if If the constant function 0 is to be plotted

Value

A series of 3 plots to help ilustrate the model


PaoloLuciano/bpwpm documentation built on May 20, 2019, 4:25 p.m.