logspline.plot {logspline}R Documentation

Plots a Logspline Density, Distribution Function, Hazard Function or Survival Function.

Usage

logspline.plot(fit, n=100, what="d", ...)

Arguments

fit a list like the output from logspline.fit.
n the number of equally spaced points at which to plot the density.
what what should be plotted: d (density), p (distribution function), s (survival function) or h (hazard function).
... all regular plotting options as desired.

Value

This function produces a plot of a logspline fit at n equally spaced points roughly covering the support of the density. (Use xlim=c(from,to) to change the range of these points.)

See Also

logspline.fit, logspline.summary, dlogspline, plogspline, qlogspline, rlogspline.

Examples

fit <- logspline.fit(y)      
logspline.plot(fit)


[Package Contents]