Learn R Programming

wnominate (version 0.98)

plot.scree: W-NOMINATE Scree Plot

Description

plot.scree is the function that takes a W-NOMINATE object and plots a Scree plot. Scree plots show the dimensionality of the voting by showing the sizes of the eigenvalues.

Usage

## S3 method for class 'scree':
plot(x, main.title="Scree Plot", x.title="Dimension",
        y.title="Eigenvalue",\ldots)

Arguments

x
a wnominate output object.
main.title
string, Skree plot title.
x.title
string, x-axis label.
y.title
string, y-axis label.
...
other arguments to plot.

Value

  • A Scree plot, showing the first 20 eigenvalues.

See Also

'wnominate', 'plot.coords', '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.scree(sen90wnom)
    plot(sen90wnom)

Run the code above in your browser using DataLab