generated from jtr13/bookdown-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1af0a48
commit d9b2b52
Showing
15 changed files
with
411 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,21 @@ | ||
# The pool of tears | ||
# Polling Methods | ||
|
||
```{r,echo = FALSE, results = 'hide', warning = FALSE,message=FALSE, fig.height=5,fig.width=8,fig.align='center'} | ||
library(ggplot2) | ||
library(lubridate) | ||
library(tidyverse) | ||
library(readxl) | ||
buden_ <- read_excel("~/buden_.xltx", sheet = "clean") | ||
buden_$end_date<-mdy(buden_$end_date) | ||
ggplot(buden_, mapping = aes(x=end_date, y=share,color=approval))+ | ||
geom_point(alpha=1/10,size=5) + | ||
geom_smooth(method = 'loess', formula = 'y~x',span=1, se=FALSE, lwd=2)+ | ||
scale_colour_manual(values = c('red','grey','green'))+ | ||
labs(title = 'President Biden Approval Tracking',x='Date', | ||
y='%Percentage%', colour='Key')+ | ||
theme_bw()+ | ||
theme(legend.position = 'bottom') + | ||
facet_wrap(~methodology) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
# A caucus-race and a long tale | ||
# Pollsters | ||
|
||
```{r,echo = FALSE, results = 'hide', warning = FALSE,message=FALSE, fig.height=5,fig.width=8,fig.align='center'} | ||
library(ggplot2) | ||
library(lubridate) | ||
library(tidyverse) | ||
library(readxl) | ||
buden_ <- read_excel("~/buden_.xltx", sheet = "clean") | ||
buden_$end_date<-mdy(buden_$end_date) | ||
ggplot(buden_, mapping = aes(x=end_date, y=share,color=approval))+ | ||
geom_point(alpha=1/10,size=5) + | ||
geom_smooth(method = 'loess', formula = 'y~x',span=1, se=FALSE, lwd=2)+ | ||
scale_colour_manual(values = c('red','grey','green'))+ | ||
labs(title = 'President Biden Approval Tracking',x='Date', | ||
y='%Percentage%', colour='Key')+ | ||
theme_bw()+ | ||
theme(legend.position = 'bottom') + | ||
facet_wrap(~pollster) | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
<!DOCTYPE html> | ||
<html lang="" xml:lang=""> | ||
<head> | ||
|
||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<title>Chapter 2 Polling Methods | charts</title> | ||
<meta name="description" content="Chapter 2 Polling Methods | charts" /> | ||
<meta name="generator" content="bookdown 0.37 and GitBook 2.6.7" /> | ||
|
||
<meta property="og:title" content="Chapter 2 Polling Methods | charts" /> | ||
<meta property="og:type" content="book" /> | ||
|
||
|
||
|
||
|
||
<meta name="twitter:card" content="summary" /> | ||
<meta name="twitter:title" content="Chapter 2 Polling Methods | charts" /> | ||
|
||
|
||
|
||
|
||
<meta name="author" content="by james" /> | ||
|
||
|
||
<meta name="date" content="2024-01-15" /> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="apple-mobile-web-app-capable" content="yes" /> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | ||
|
||
|
||
<link rel="prev" href="index.html"/> | ||
<link rel="next" href="pollsters.html"/> | ||
<script src="libs/jquery-3.6.0/jquery-3.6.0.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/fuse.js@6.4.6/dist/fuse.min.js"></script> | ||
<link href="libs/gitbook-2.6.7/css/style.css" rel="stylesheet" /> | ||
<link href="libs/gitbook-2.6.7/css/plugin-table.css" rel="stylesheet" /> | ||
<link href="libs/gitbook-2.6.7/css/plugin-bookdown.css" rel="stylesheet" /> | ||
<link href="libs/gitbook-2.6.7/css/plugin-highlight.css" rel="stylesheet" /> | ||
<link href="libs/gitbook-2.6.7/css/plugin-search.css" rel="stylesheet" /> | ||
<link href="libs/gitbook-2.6.7/css/plugin-fontsettings.css" rel="stylesheet" /> | ||
<link href="libs/gitbook-2.6.7/css/plugin-clipboard.css" rel="stylesheet" /> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<link href="libs/anchor-sections-1.1.0/anchor-sections.css" rel="stylesheet" /> | ||
<link href="libs/anchor-sections-1.1.0/anchor-sections-hash.css" rel="stylesheet" /> | ||
<script src="libs/anchor-sections-1.1.0/anchor-sections.js"></script> | ||
|
||
|
||
|
||
<style type="text/css"> | ||
|
||
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} | ||
</style> | ||
|
||
<link rel="stylesheet" href="style.css" type="text/css" /> | ||
</head> | ||
|
||
<body> | ||
|
||
|
||
|
||
<div class="book without-animation with-summary font-size-2 font-family-1" data-basepath="."> | ||
|
||
<div class="book-summary"> | ||
<nav role="navigation"> | ||
|
||
<ul class="summary"> | ||
<li><a href="./">Projects Blog</a></li> | ||
|
||
<li class="divider"></li> | ||
<li class="chapter" data-level="1" data-path="index.html"><a href="index.html"><i class="fa fa-check"></i><b>1</b> Biden Approval Tracking</a></li> | ||
<li class="chapter" data-level="2" data-path="polling-methods.html"><a href="polling-methods.html"><i class="fa fa-check"></i><b>2</b> Polling Methods</a></li> | ||
<li class="chapter" data-level="3" data-path="pollsters.html"><a href="pollsters.html"><i class="fa fa-check"></i><b>3</b> Pollsters</a></li> | ||
<li class="divider"></li> | ||
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li> | ||
</ul> | ||
|
||
</nav> | ||
</div> | ||
|
||
<div class="book-body"> | ||
<div class="body-inner"> | ||
<div class="book-header" role="navigation"> | ||
<h1> | ||
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">charts</a> | ||
</h1> | ||
</div> | ||
|
||
<div class="page-wrapper" tabindex="-1" role="main"> | ||
<div class="page-inner"> | ||
|
||
<section class="normal" id="section-"> | ||
<div id="polling-methods" class="section level1 hasAnchor" number="2"> | ||
<h1><span class="header-section-number">Chapter 2</span> Polling Methods<a href="polling-methods.html#polling-methods" class="anchor-section" aria-label="Anchor link to header"></a></h1> | ||
<p><img src="bookdownproj_files/figure-html/unnamed-chunk-2-1.png" width="768" style="display: block; margin: auto;" /></p> | ||
|
||
</div> | ||
</section> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
<a href="index.html" class="navigation navigation-prev " aria-label="Previous page"><i class="fa fa-angle-left"></i></a> | ||
<a href="pollsters.html" class="navigation navigation-next " aria-label="Next page"><i class="fa fa-angle-right"></i></a> | ||
</div> | ||
</div> | ||
<script src="libs/gitbook-2.6.7/js/app.min.js"></script> | ||
<script src="libs/gitbook-2.6.7/js/clipboard.min.js"></script> | ||
<script src="libs/gitbook-2.6.7/js/plugin-search.js"></script> | ||
<script src="libs/gitbook-2.6.7/js/plugin-sharing.js"></script> | ||
<script src="libs/gitbook-2.6.7/js/plugin-fontsettings.js"></script> | ||
<script src="libs/gitbook-2.6.7/js/plugin-bookdown.js"></script> | ||
<script src="libs/gitbook-2.6.7/js/jquery.highlight.js"></script> | ||
<script src="libs/gitbook-2.6.7/js/plugin-clipboard.js"></script> | ||
<script> | ||
gitbook.require(["gitbook"], function(gitbook) { | ||
gitbook.start({ | ||
"sharing": { | ||
"github": false, | ||
"facebook": true, | ||
"twitter": true, | ||
"linkedin": false, | ||
"weibo": false, | ||
"instapaper": false, | ||
"vk": false, | ||
"whatsapp": false, | ||
"all": ["facebook", "twitter", "linkedin", "weibo", "instapaper"] | ||
}, | ||
"fontsettings": { | ||
"theme": "white", | ||
"family": "sans", | ||
"size": 2 | ||
}, | ||
"edit": { | ||
"link": "https://jamesstats.github.io/blog//edit/main/02-tears.Rmd", | ||
"text": "Edit" | ||
}, | ||
"history": { | ||
"link": null, | ||
"text": null | ||
}, | ||
"view": { | ||
"link": "https://jamesstats.github.io/blog//blob/main/02-tears.Rmd", | ||
"text": null | ||
}, | ||
"download": null, | ||
"search": { | ||
"engine": "fuse", | ||
"options": null | ||
}, | ||
"toc": { | ||
"collapse": "subsection" | ||
} | ||
}); | ||
}); | ||
</script> | ||
|
||
</body> | ||
|
||
</html> |
Oops, something went wrong.