Learn R Programming

kubik (version 0.3.0)

31_plot_methods: Plot Methods

Description

Plot methods, for chs-related objects.

Usage

# S3 method for KSpline
kub.plotf(sf, …, control.points=FALSE)
# S3 method for KSpline
kub.linesf(sf, …, control.points=FALSE)
# S3 method for KSpline
kub.pointsf(sf, …)

Arguments

sf

A KSpline object, which is the superclass of CHS, CHSD and CHSI objects.

control.points

If true, plot the control points (for CHS objects), or their corresponding points (for CHSD and CHSI).

Other arguments.

References

Please refer to the help page for chs for background information and references.

See Also

chs

Examples

Run this code
# NOT RUN {
#control points
cx <- 1:4
cy <- c (-4, -1, 1, 4)

#cubic hermite spline
#(with function object, and default slopes)
f <- chs (cx, cy)

#plot the object
#(with control points)
plot (f, control.points=TRUE)
# }

Run the code above in your browser using DataLab