plot.ndlClassify {ndl} | R Documentation |
Plot function for selected results of ndlClassify
.
Description
This function presents visually the estimated weights or expected
probabilities for a model fitted with ndlClassify
Usage
## S3 method for class 'ndlClassify'
plot(x, values="weights", ...)
## S3 method for class 'ndlWeights'
plot(x, type="density", predictors=NULL, outcomes=NULL,
panes="single", lty=NULL, col=NULL, mfrow=NULL, main=NULL,
legend.position="topright", ...)
## S3 method for class 'ndlProbabilities'
plot(x, type="density", select="all",
panes="single", lty=NULL, col=NULL, pch=NULL, mfrow=NULL,
main=NULL, legend.position="topright", ...)
Arguments
x |
A object of the class |
values |
A character string specifiying whether estimated |
type |
A character string spefifying the type of plot to be drawn;
|
panes |
A character string specifying whether a |
predictors |
A regular expression specifying which predictors and their values
should be included in the plot(s); by default |
outcomes |
A list of outcomes to be included in the plot; by default |
select |
For |
lty , col , pch , mfrow , main , legend.position |
Specifications of various graphical parameters (see
|
... |
Arguments to be passed to methods, such as graphical
parameters (see |
Value
A plot of the selected type is produced on the graphics device.
Author(s)
Antti Arppe and R. H. Baayen
References
Arppe, A. and Baayen, R. H. (in prep.)
See Also
Examples
## Not run:
data(think)
think.ndl <- ndlClassify(Lexeme ~ Agent + Patient + Section, data=think)
plot(think.ndl, values="weights")
plot(think.ndl, values="weights", type="hist", panes="multiple")
plot(think.ndl, values="weights", type="density", panes="multiple")
plot(think.ndl, values="weights", type="density", panes="multiple",
predictors="Section*")
plot(think.ndl, values="weights", type="density", panes="multiple",
predictors="Patient*")
plot(think.ndl, values="weights", type="hist", panes="multiple", col=1:4)
plot(think.ndl, values="weights", type="density", panes="single",
outcomes=c("ajatella","miettia","pohtia","harkita"))
plot(think.ndl, values="probabilities")
plot(think.ndl, values="probabilities", panes="multiple")
plot(think.ndl, values="probabilities", select="max")
plot(think.ndl, values="probabilities", select=c(1:3))
plot(think.ndl, values="probabilities", panes="multiple", select=c(1:3))
plot(think.ndl, values="probabilities", type="sort", legend.position="topleft")
plot(think.ndl, values="probabilities", type="sort", pch=".",
legend.position="topleft")
plot(think.ndl, values="probabilities", type="sort", pch=".", panes="multiple")
## End(Not run)