Description Usage Arguments Details Value Author(s) Examples
Plot an object of class AcrossTic (see details). Currently intended for two-class objects built with two-dimensional Xs.
1 2 |
x |
AcrossTic object, normally the output from |
X.values |
Matrix of data. If not spplied the function looks in |
y |
Vector with two distinct values giving the label for each observation. |
grp.cols |
Colors for the two groups. Default: 2 and 4. |
grp.pch |
Plotting points for the two groups. Default: 16 and 17. |
... |
Other arguments, passed on to |
This demonstrates a graph of the matching of the rRegMatch type. Points are plotted in 2d; then within-group matches are shown with dotted lines and between-group pairings with solid ones. If X has more than two columns, the first two are used, with a warning. If Y is supplied it will be used; if not, it will be extracted from x; if no y is found, an error is issued. Y must have exactly two distinct values.
No output. Side effect: a plot is produced.
David Ruth and Sam Buttrey
1 2 3 4 | set.seed (123)
X <- matrix (rnorm (100), 50, 2) # Create data...
y <- rep (c (0, 1), each=25) # ...and class membership
plot (rRegMatch (X, r = 3, y = y))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.