Trace plot of lasso fit
lassoPlot(B)
lassoPlot(B,FitInfo)
lassoPlot(B,FitInfo,Name,Value)
[ax,figh]
= lassoPlot(___)
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.
|
Coefficients of a sequence of regression fits, as returned from
the |
|
Information controlling the plot: |
Specify optional
comma-separated pairs of Name,Value
arguments. Name
is
the argument name and Value
is the corresponding value.
Name
must appear inside quotes. You can specify several name and value
pair arguments in any order as Name1,Value1,...,NameN,ValueN
.
|
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: |
|
Handle to the axis of the plot (see Axes Appearance (MATLAB)). |
|
Handle to the figure window (see Special Object Identifiers (MATLAB)). |