Learn R Programming

fwdmsa (version 0.2)

plot.fs.n1.class: Plot fs.n1.class objects

Description

S3 Method to plot objects of class fs.n1.class. Graphic display of the number of unique subsamples produced by multiple Forward Searches.

Usage

"plot"( x, cutoff=default.cutoff, n1.type=default.type, lwd=default.lwd, lty=default.lty, col=default.col, ylim = default.ylim, xlim = default.xlim, ...)

Arguments

x
Object of class fs.n1.class produced by fs.MSA.n1.
cutoff
Default is the cutoff used for determining $n1$ in fs.MSA.n1.
n1.type
Default is "unique" which shows number of unique subsamples; "major" shows the number of subsamples not belonging to largest unique subsample; "both" plots both unique and major.
lwd
Line width
lty
Line type
col
Colour to be used for the lines.
ylim, xlim
Range of x and y values with sensible defaults.
...
Other arguments are ignored.

Value

Returns a graph.

References

Zijlstra, W. P., Van der Ark, L. A., and Sijtsma, K. (2011). Robust Mokken scale analysis by means of the forward search algorithm for outlier detection. Multivariate Behavioral Research, 46, 58-89.

See Also

fs.MSA.n1, fs.MSA, plot.fs.class

Examples

Run this code
## Not run: 
# ## Retrieve data (588 observations)
#   data(acs)
# 
# # Determine n1 by running the Forward Search for Mokken scale analysis
# # B=100 times 
#   fwdmsa.res.n1 <- fs.MSA.n1(acs, B=100)
# 
# # Plot of number unique subsamples
#   plot(fwdmsa.res.n1)
# 
# # Plot of number of subsamples not belonging to largest unique subsample (majority)
#   plot(fwdmsa.res.n1,n1.type="major")
# ## End(Not run)

Run the code above in your browser using DataLab