Shows a plot with explained variance vs. number of components.
# S3 method for ldecomp
plotVariance(
obj,
type = "b",
variance = "expvar",
labels = "values",
xticks = seq_len(obj$ncomp),
show.plot = TRUE,
ylab = "Explained variance, %",
...
)
object of ldecomp
class.
type of the plot
string, which variance to make the plot for ("expvar", "cumexpvar")
what to show as labels for plot objects.
vector with ticks for x-axis
logical, shall plot be created or just plot series object is needed
label for y-axis
most of graphical parameters from mdaplot
function can be used.