plot_2D_proj: Plot 2D projection of the Model

Description Usage Arguments Value

View source: R/plot_funcs.R

Description

2D projection of both the inputs and the posterior regions of classification. Usefull to evaluate the corresponding binary outcomes. Instead of plotting the corresponding conotur of the 3D function plotted by plot_3D_proj. The projection function is mapped to it's corresponding binary output and plotted behind the regular data.

Usage

1
plot_2D_proj(Y, X, bpwpm_params, n = 15, alpha = 0.6)

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

Value

A ggplot2 scatter plot


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