Skip to contents

Data from a Pew Research Center poll about Presidential power/control over gas prices.

Usage

prez_pwr

Format

A data frame with 365 rows and 3 variables.

president

Sitting President at time of the poll.

party

Political party of the respondent with levels d(emocrat) and r(epublican).

has_pwr

Respondent answer to the question: "Is the price of gasoline something the president can do alot about, or is that beyond the president's control?"

Source

Pew Research Center, May 2006 & March 2012. @keywords datasets

Examples

library(ggplot2)
ggplot(prez_pwr, aes(has_pwr, fill = party)) +
  geom_bar() +
  labs(
    title = "Is the price of gasoline something the president can do alot about?",
    x = "",
    y = "Number of respondents",
    fill = "Respondent Party"
  ) +
  facet_wrap(~president)