plot.coords
reads a W-NOMINATE object in 2 user-specified dimensions
and plots the coordinates of each member, applying separate colors and shapes
to each party by default. A unit circle is included to emphasize the
constraints on the W-NOMINATE coordinates, and options to select non-party
attributes of legislators are included. For a 1D W-WNOMINATE object,
W-NOMINATE scores are plotted against their ranks.
# S3 method for coords
plot(x, main.title="W-NOMINATE Coordinates",
d1.title="First Dimension", d2.title="Second Dimension", dims=c(1,2),
plotBy="party", color=TRUE, shape=TRUE, cutline=NULL, Legend=TRUE,
legend.x=0.8, legend.y=1, ...)
A coordinate plot.
a wnominate
output object.
string, coordinate plot title.
string, x-axis label.
string, y-axis label.
vector of length 2, specifying the dimensions to be plotted.
string, name of a variable in nomObject\$data
.
plot.coords
will plot coordinates using this variable as a selector.
logical, marks different groups specified by plotBy
using
different colors if TRUE.
logical, marks different groups specified by plotBy
using different
shapes if TRUE.
vector, selects roll calls by row number for which a cutting line is desired.
logical, include a generic legend.
numeric, corresponds to the 'x' argument of legend().
numeric, corresponds to the 'y' argument of legend().
other arguments to symbols
.
Keith Poole ktpoole@uga.edu
Jeffrey Lewis jblewis@ucla.edu
James Lo lojames@usc.edu
Royce Carroll rcarroll@rice.edu
'wnominate', 'plot.scree', 'plot.cutlines', 'plot.angles', 'plot.nomObject'
#This data file is the same as that obtained using:
#data(sen90)
#sen90wnom<-wnominate(sen90,polarity=c(2,5))
data(sen90wnom)
summary(sen90wnom)
plot.coords(sen90wnom)
plot(sen90wnom)
Run the code above in your browser using DataLab