Learn R Programming

textir (version 1.8-8)

plot.mnlm: Multinomial logistic regression Plots

Description

Plot function for mnlm objects, the output of multinomial logistic regression.

Usage

## S3 method for class 'mnlm':
plot(x, type=c("response","reduction","roc"), covar=NULL, v=NULL, xlab=NULL, ylab=NULL, col=NULL, ...)

Arguments

x
An output object from the mnlm function.
type
Under "response", plot the fitted count expectations against observed non-zero counts. Under "reduction", plot the sufficient reduction scores freq(counts)%*%loadings from inverse
covar
For type="reduction". The covariate direction to plot. Defaults to 1.
v
For type="reduction". Optional argument for the fitted reduction to be plotted against (if, e.g., you wish to plot against unnormalized response).
xlab
The x-axis label; will be automatically set if NULL.
ylab
The y-axis label; will be automatically set if NULL. For binary data, this becomes the legend title.
col
The color(s). Usage changes depending on plot type (for roc, it must be a ncol(predict(x,x$covars)) length vector).
...
Additional plot arguments

Value

  • A fabulous plot.

References

Taddy (2012), Multinomial Inverse Regression for Text Analysis. http://arxiv.org/abs/1012.2098

See Also

mnlm, congress109, we8there