Learn R Programming

basicspace (version 0.24)

plot.AM: Aldrich-McKelvey Coordinate Distribution Plot

Description

plot.AM reads an aldmck object and plots the probability distribution of the respondents and stimuli.

Usage

# S3 method for AM
plot(x, xlim=c(-2,2), …)

Arguments

x

an aldmck output object.

xlim

vector of length 2, fed to the plot function as the xlim argument, which sets the minimum and maximum range of the x-axis.

...

other arguments to plot.

Value

A plot of the probability distribution of the respondent ideal points, along with the locations of the stimuli. If no self-placements were specified during estimation, no graphical plots will appear.

See Also

'aldmck', 'LC1980', 'summary.aldmck', 'plot.cdf', 'plot.aldmck'

Examples

Run this code
# NOT RUN {
### Loads and scales the Liberal-Conservative scales from the 1980 NES.
data(LC1980)
result <- aldmck(data=LC1980, polarity=2, respondent=1, missing=c(0,8,9),verbose=TRUE)
summary(result)
par(ask=TRUE)
plot.AM(result,xlim=c(-1.5,1.5))
plot.cdf(result)
# }

Run the code above in your browser using DataLab