lassoPlot
Trace plot of lasso fit
Syntax
lassoPlot(B)
lassoPlot(B,FitInfo)
lassoPlot(B,FitInfo,Name,Value)
[ax,figh]
= lassoPlot(___)
Description
lassoPlot(
creates
a trace plot of the values in B
)B
against the L1 norm
of B
.
lassoPlot(
creates
a plot with type depending on the data type of B
,FitInfo
)FitInfo
and
the value, if any, of the PlotType
name-value
pair.
lassoPlot(
creates
a plot with additional options specified by one or more B
,FitInfo
,Name,Value
)Name,Value
pair
arguments.
[
, for any previous input syntax,
returns a handle ax
,figh
]
= lassoPlot(___)ax
to the plot axis, and a handle figh
to
the figure window.
Input Arguments
|
Coefficients of a sequence of regression fits, as returned from
the |
|
Information controlling the plot: |
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name
in quotes.
|
Axis in which to draw the plot. Default: New plot | ||||||||
|
Plot type when you specify a
If you include a cross-validated
To display the label for each plot in the legend of the figure, type
Default: | ||||||||
|
String array or cell array of character vectors to label each coefficient of
For an example, see Lasso Plot with Default Plot Type. Default: | ||||||||
|
Default: |
Output Arguments
|
Handle to the axis of the plot (see Axes Appearance). |
|
Handle to the figure window (see Special Object Identifiers). |
Examples
Version History
Introduced in R2011b