Plot method for a fusedanova object

Share:

Description

Produce a plot of the solution path of a fusedanova fit.

Usage

1
2
3
4
5
6
\S4method{plot}{fusedanova}(x, y,
main=paste("Regularization path for variable",varvect),
xlab = expression(paste("location in the regularization path  ",lambda)),
ylab = expression(paste("optimal coefficient  ",beta)),
log.scale = TRUE, reverse   = FALSE, labels    = NULL ,
varvect = sample(1:length(slot(x,"result")),1), plot = TRUE, ...)

Arguments

x

an object of class fusedanova.

y

used for S4 compatibility.

main

the main title, with a hopefully appropriate default definition.

xlab

character or expression (or a "grob") giving label(s) for the x-axis.

ylab

character or expression (or "grob") giving label for the y-axis.

log.scale

logical; indicates if a log-scale should be used. Default is TRUE.

reverse

logical; should the X-axis be reversed? Default is FALSE.

labels

a vector of factor with labels associated to n samples classed by fused-ANOVA. Default is NULL.

varvect

a vector with the variables whose path will be plot. Default picks one at random.

plot

logical; indicates if the graph should be plotted on call. Default is TRUE.

...

used for S4 compatibility.

Value

a ggplot2 object which can be plotted via the print method.

See Also

fusedanova.

fusedanova.

fusedanova.

Examples

1
2
3
data(aves)
fa.laplace <- fusedanova(x=aves$weight, class=aves$family, weights="laplace", gamma=5)
plot(fa.laplace, labels=aves$order)