PPregVarViz: Visualize independent variable action in projection pursuit...

View source: R/PPregVarViz.R

PPregVarVizR Documentation

Visualize independent variable action in projection pursuit regression tree.

Description

This function is developed to see the influence of independent variables on the range of dependent variable.

Usage

PPregVarViz(PPTreeregOBJ,var.id,indiv=FALSE,
                   DEPTH=NULL,smoothMethod="auto", var.factor=FALSE)

Arguments

PPTreeregOBJ

PPTreereg class object - a model to be explained

var.id

independent variable name

indiv

TRUE: individual group plot, FALSE: combined one plot

DEPTH

depth for exploration

smoothMethod

method in geom_smooth function

var.factor

TRUE when indepedent variable is a categorical variable (as factor)

Value

An object of the class ggplot

Examples

data(dataXY)
Model <- PPTreereg(Y~., data = dataXY, DEPTH = 2)
PPregVarViz(Model,"X1")
PPregVarViz(Model,"X1",indiv = TRUE)


sunsmiling/PPtreeregViz documentation built on Oct. 12, 2023, 11:15 a.m.