Learn R Programming

gplsim (version 1.0.0)

plot_si: Function that plot fitted curve for the unknown univariate function for single index term

Description

Function that plot fitted curve for the unknown univariate function for single index term

Usage

plot_si(
  x,
  family = gaussian(),
  ylab = "mean",
  yscale = NULL,
  plot_data = FALSE
)

Value

NULL single-index plot

Arguments

x

the gam/gplism fitted object

family

default is gaussian()

ylab

y label

yscale

scale of y

plot_data

controls whether to plot the data as points