Learn R Programming

pscl (version 1.02)

presidentialElections: elections for U.S. President, 1932-2004, by state

Description

Data from states and the District of Columbia, Democratic share of the presidential vote, 1932-2004.

Usage

data(presidentialElections)

Arguments

format

  • state
{name of state, character} demVote{percent of the vote for president won by the Democratic candidate} year{numeric, integer} south{logical, TRUE if state is one of the 11 states of the former Confederacy}

source

David Leip's Atlas of U.S. Presidential Elections http://uselectionsatlas.org

Examples

Run this code
data(presidentialElections)
require(lattice)
xyplot(demVote ~ year | state,
       panel=panel.lines,
       ylab="Democratic Vote for President (percent)",
       xlab="Year",
       data=presidentialElections,
       scales=list(y=list(cex=.6),x=list(cex=.35)),
       strip=strip.custom(par.strip.text=list(cex=.6)))

Run the code above in your browser using DataLab