plot_oc_rollcall: Plotting method for Individual Roll Calls from Optimal...

View source: R/asmcjr.r

plot_oc_rollcallR Documentation

Plotting method for Individual Roll Calls from Optimal Classification Model

Description

Produces a plot of the legislators and cutting line for an individual roll call vote for a oc object.

Usage

plot_oc_rollcall(obj, data, shapeVar = NULL, 
    rcnum, rotMat = diag(2), dropNV=FALSE, 
    onlyErrors=FALSE, ptSize=4)

Arguments

obj

An object of class nomObject.

data

rollcall object used to estimate nomObject.

shapeVar

A vector of grouping variable values that will be used to identify groups of legislators (e.g., party).

rcnum

Number identifying the roll call to be plotted.

rotMat

A rotation matrix for the point configuration.

dropNV

Whether or not those who didn't vote Yea or Nay.

onlyErrors

Should only those legislators who voted counter to their model predictions be plotted?

ptSize

Size of symbols passed to geom_point.

Value

A ggplot


davidaarmstrong/asmcjr documentation built on June 29, 2024, 12:07 p.m.