Learn R Programming

wnominate (version 1.4)

plot.coords: W-NOMINATE Coordinate Plot

Description

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.

Usage

# 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, ...)

Value

A coordinate plot.

Arguments

x

a wnominate output object.

main.title

string, coordinate plot title.

d1.title

string, x-axis label.

d2.title

string, y-axis label.

dims

vector of length 2, specifying the dimensions to be plotted.

plotBy

string, name of a variable in nomObject\$data. plot.coords will plot coordinates using this variable as a selector.

color

logical, marks different groups specified by plotBy using different colors if TRUE.

shape

logical, marks different groups specified by plotBy using different shapes if TRUE.

cutline

vector, selects roll calls by row number for which a cutting line is desired.

Legend

logical, include a generic legend.

legend.x

numeric, corresponds to the 'x' argument of legend().

legend.y

numeric, corresponds to the 'y' argument of legend().

...

other arguments to symbols.

Author

Keith Poole ktpoole@uga.edu

Jeffrey Lewis jblewis@ucla.edu

James Lo lojames@usc.edu

Royce Carroll rcarroll@rice.edu

See Also

'wnominate', 'plot.scree', 'plot.cutlines', 'plot.angles', 'plot.nomObject'

Examples

Run this code
    #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