Learn R Programming

Sshaped (version 0.99)

plot.sshaped: Plot of a sshaped object

Description

This function takes a fitted sshaped object produced by sshapedreg or cvxreg, and plots the observations, the fitted function and the location of the estimated inflection point (where applicable).

Usage

# S3 method for sshaped
plot(x, ...)

Arguments

x

A fitted sshaped object produced by sshapedreg or cvxreg.

...

Other arguments passed to plot.

Value

No return value. A plot is produced.

Details

A plot that shows the observations, the fitted function and the location of the estimated inflection point (where applicable, i.e. when object$shape equals "sshaped".).

See Also

sshapedreg, cvxreg

Examples

Run this code
# NOT RUN {
## See examples for the functions sshapedreg and cvxreg.
# }

Run the code above in your browser using DataLab