% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nmfkc.R
\name{plot.nmf.rank}
\alias{plot.nmf.rank}
\title{Plot a rank-selection (nmf.rank) object}
\usage{
\method{plot}{nmf.rank}(
  x,
  main = NULL,
  xlab = "Rank (Q)",
  ylab = "R-squared / eff.rank (0-1)",
  lwd = 3,
  ...
)
}
\arguments{
\item{x}{An object of class \code{"nmf.rank"}.}

\item{main}{Plot title (defaults to the title stored in \code{x}).}

\item{xlab, ylab}{Axis labels.}

\item{lwd}{Line width of the criterion curves.}

\item{...}{Further arguments passed to the initial
\code{\link[graphics]{plot}}.}
}
\value{
\code{x}, invisibly.
}
\description{
Draws the concise three-criterion rank-selection plot for an object
returned by \code{\link{nmfkc.rank}} (or \code{nmfkc.net.rank},
\code{nmfkc.signed.rank}, \code{nmfae.rank}, \code{nmfae.signed.rank}):
\code{r.squared} (red) and the effective-rank utilization
\code{eff.rank} (green) on the left \eqn{[0, 1]} axis, and the
cross-validation error \code{sigma.ecv} (blue) on the right axis, each
with points, rank-number labels and a highlighted best marker.
}
\seealso{
\code{\link{nmfkc.rank}}
}
