plot_OCcutlines2 | R Documentation |
This is a slight modification to the cut-lines plotting method from the oc package.
It reads an Optimal Classification object and plots the cutting line
of a specified proportion of all votes along two user-specified dimensions. The
default is to plot 50 cutting lines. This is also known as a Coombs mesh.
A unit circle is included to emphasize the constraints on the Optimal Classification
coordinates. Only cutlines that are constrained to have midpoints lying in a
unit circle are included. plot.cutlines
does not work for 1D OCobject
objects.
plot_OCcutlines2(x, main.title="Cutting Lines",
d1.title="First Dimension", d2.title="Second Dimension",
lines=50,dims=c(1,2),lwd=2,...)
x |
an |
main.title |
string, coordinate plot title. |
d1.title |
string, x-axis label. |
d2.title |
string, y-axis label. |
lines |
If a single number, it gives the number of non-constrained cutlines to be plotted. If this number exceeds to total number of cutlines, then all cutlines are plotted. If it is a vector, it plots only the cutlines for the indicated votes. |
dims |
numeric vector of length 2, specifying dimensions to be plotted. |
lwd |
numeric, line width. |
... |
other arguments to |
A Coombs mesh.
Keith Poole ktpoole@uga.edu
Jeffrey Lewis jblewis@ucla.edu
James Lo lojames@usc.edu
Royce Carroll rcarroll@rice.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.