prez_pwr | R Documentation |
Data from a Pew Research Center poll about Presidential power/control over gas prices.
prez_pwr
A data frame with 365 rows and 3 variables.
Sitting President at time of the poll.
Political party of the respondent with levels d(emocrat) and r(epublican).
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?"
Pew Research Center, May 2006 & March 2012.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.