polarization2D: 2D Plot (prototype).

Description Usage Arguments Value Examples

View source: R/polarization2D.v12.R

Description

2D Plot (prototype).

Usage

1
2
3
polarization2D(congress = 100, chamber = "house", state = NULL,
  data.version = "common", mcdonald = TRUE, stump = TRUE,
  alpha = 2/3, overlap.trim = 0, wt2D = TRUE, all = TRUE, ...)

Arguments

congress

Numeric. Session number.

chamber

Character. "house", "senate" or "both".

state

Character. Two character state postal abbreviation (e.g., "CA") or "US" (President). Lower case OK (e.g, "ca").

data.version

Character. DW-NOMINATE flavor: "common", "common.weekly" or "dw".

mcdonald

Logical. Include Larry McDonald (GA-D). idno = 14252.

stump

Logical. Include Bob Stump (AZ-D). idno = 94454.

alpha

Numeric. Alpha level transparency.

overlap.trim

Numeric. Sets the smaller quantile to trim the range of scores. Must be on [0, 0.5). "0" uses minimum Republican score and maximum Democrat score.

wt2D

Logical. Weight second dimension.

all

Logical. Show legislator points.

...

Additional plotting parameters.

Value

An R plot.

Examples

1
2
3
# polarization2D(chamber = "both")
# polarization2D(state = "CA")
# polarization2D(state = "ny")

lindbrook/vizip documentation built on May 7, 2019, 10:59 a.m.