plot.gsf: Plot the coefficient paths of an 'gsf' object.

Description Usage Arguments Value References Examples

Description

Plot the coefficient paths of an gsf object.

Usage

1
2
3
## S3 method for class 'gsf'
plot(x, gg = FALSE, eta = TRUE, vlines = TRUE,
  points = FALSE, opt = NULL, sqrtScale = FALSE, ...)

Arguments

x

An gsf object.

gg

A ggplot2 figure is produced if TRUE, and a Base R figure is produced otherwise.

eta

If TRUE, a coefficient plot for the distance between consecutive coefficient is produced, and a plot with all coefficients is produced otherwise.

vlines

If TRUE, vertical dashed lines are plotted whenever the number of components decreases, FALSE otherwise.

points

If TRUE, points are plotted along the lines, and are not plotted otherwise.

opt

Optimal tuning parameter value. If not NULL, a vertical red line is drawn at this point.

sqrtScale

TRUE if lambda values are to be plotted on the square root scale, FALSE otherwise.

...

Additional Base R plotting parameters.

Value

Returns one or more plots depending on the value of eta.

References

Manole, T., Khalili, A. 2019. "Estimating the Number of Components in Finite Mixture Models via the Group-Sort-Fuse Procedure".

Examples

1
2
3
4
5
 data(faithful)
 out <- normalLocOrder(faithful, K=12, 
                       lambdas=c(0.1, 0.25, 0.5, 0.75, 1.0), penalty="MCP", a=2)
 plot(out)
 bicTuning(faithful, out)

tmanole/GroupSortFuse documentation built on Jan. 12, 2022, 10:37 p.m.