May 19, 2025
3,385 voters polled
49% say will vote for Harris
46% say will vote for Trump
[1] 0.489808
First, store the information we need in format for plotting
ggplot(plotData, aes(y = estimate, x = candidate, ymin = conf.low, ymax = conf.high)) + geom_col(fill = "steelblue4", width = .5) + geom_errorbar(width = .05) + theme_bw() + ylim(0, .6) + labs(x = "Candidate", y = "Percent Intending to Vote", title = "Point Estimates and 95% Confidence Intervals")ggplot(plotData, aes(y = estimate, x = candidate, ymin = conf.low, ymax = conf.high)) + geom_col(fill = "steelblue4", width = .5) + geom_errorbar(width = .05) + theme_bw() + ylim(0, .6) + labs(x = "Candidate", y = "Percent Intending to Vote", title = "Point Estimates and 95% Confidence Intervals")ggplot(plotData, aes(y = estimate, x = candidate, ymin = conf.low, ymax = conf.high)) + geom_col(fill = "steelblue4", width = .5) + geom_errorbar(width = .05) + theme_bw() + ylim(0, .6) + labs(x = "Candidate", y = "Percent Intending to Vote", title = "Point Estimates and 95% Confidence Intervals")
ggplot(plotData, aes(y = estimate, x = candidate, ymin = conf.low, ymax = conf.high)) + geom_point() + geom_errorbar(width = .05) + theme_bw() + ylim(.4, .6) + labs(x = "Candidate", y = "Percent Intending to Vote", title = "Vote Intention in 2024", subtitle = "Point Estimates and 95% Confidence Intervals") + geom_hline(yintercept = .5, linetype = "dashed", color = "grey")ggplot(plotData, aes(y = estimate, x = candidate, ymin = conf.low, ymax = conf.high)) + geom_point() + geom_errorbar(width = .05) + theme_bw() + ylim(.4, .6) + labs(x = "Candidate", y = "Percent Intending to Vote", title = "Vote Intention in 2024", subtitle = "Point Estimates and 95% Confidence Intervals") + geom_hline(yintercept = .5, linetype = "dashed", color = "grey")ggplot(plotData, aes(y = estimate, x = candidate, ymin = conf.low, ymax = conf.high)) + geom_point() + geom_errorbar(width = .05) + theme_bw() + ylim(.4, .6) + labs(x = "Candidate", y = "Percent Intending to Vote", title = "Vote Intention in 2024", subtitle = "Point Estimates and 95% Confidence Intervals") + geom_hline(yintercept = .5, linetype = "dashed", color = "grey")
–>
–>
–> –> –> –> –> –>

