| plot.nmfkc.ident | R Documentation |
Draws how far X and C (B for a fit without covariates)
can move without changing the fit. The ranges are the identification region
when it was computed (Y and A given, nrow(A) == rank);
otherwise they are the ranges found by the algebraic check, which are inner
bounds (the region is at least this wide). Each line is the range of one
entry on its own: the entries do not reach their ends together, since one
remixing moves the whole matrix.
type = "C": one panel per entry of C, bases in rows and
covariates in columns: the range (black; a dot when it is a single
point), the profile-likelihood interval if computed (gray) and the
estimate (red cross). Panels whose interval excludes 0 are shaded.
type = "X": one panel per basis, the range of every row of
X (black) and the estimate (red cross). The row names are
written once, left of the first panel, so that many bases fit side by
side on a page; when they do not fit the height, every k-th row is
named. Beyond 40 rows the row numbers are written at a few
pretty() positions instead; rows draws a subset.
type = "B": one strip per basis, the columns of C along
the horizontal axis (for a fit without covariates, C = B has one
column per sample), the range of every entry (black line) and the
estimate (small red point). Suited to many columns. When at
is given, the horizontal axis is left undrawn so that
axis(1, ...) can label it (e.g. with dates).
type = "C.prob", "B.prob": the same with every
column of C divided by its sum, i.e. the share of each basis in
a covariate, or the membership probability of a sample (B.prob
of the fit) without covariates. The column sums do not change under a
remixing, so these ranges are exact rescalings and lie between 0 and 1; the
profile-likelihood intervals, which are for C itself, are not
drawn. No "X.prob" is offered: the row sums of X change
under a remixing, so its row shares do not rescale.
The estimate is the repaired fit when the region was computed, otherwise
the fitted matrices. The colours named above are the defaults; col
changes them, and cex and lwd the sizes of the marks and the
widths of the lines.
## S3 method for class 'nmfkc.ident'
plot(
x,
type = NULL,
bases = NULL,
at = NULL,
panel = NULL,
col = NULL,
cex = NULL,
lwd = NULL,
rows = NULL,
...
)
x |
An object of class |
type |
|
bases |
Bases to draw, by index or name (columns of |
at |
For |
panel |
For |
col |
Colours, as a named vector with any of |
cex |
Sizes of the marks, as a named vector with any of
|
lwd |
Line widths, as a named vector with any of |
rows |
For |
... |
Not used. |
x, invisibly. For type = "B" the graphical
parameters are left as set, with the last strip active, so that
axis(1, ...) can relabel the horizontal axis afterwards.
nmfkc.ident, summary.nmfkc.ident
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.