Learn R Programming

RXshrink (version 2.3)

plot.syxi: Plot method for syxi objects

Description

Display plots for Visual Validation of the syxi() approach that attempts to straighten nonlinear relationships between two variables.

Usage

# S3 method for syxi
plot(x, type = "xy", ...)

Value

NULL

Arguments

x

syxi output list object of class syxi.

type

One of two possible options: "xy" to display a plot of the x-predictor versus the y-outcome with the lm() fitted line in RED and the corresponding gam() Spline fit in BLUE, "sy" (or any string different from "xy") displays a plot of s(x) versus y with only the lm() fit in BLUE.

...

Optional argument(s) passed on to plot().

Author

Bob Obenchain <wizbob@att.net>