Skip to content

Commit

Permalink
website publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesstats committed Jan 16, 2024
1 parent 1af0a48 commit d9b2b52
Show file tree
Hide file tree
Showing 15 changed files with 411 additions and 17 deletions.
21 changes: 20 additions & 1 deletion 02-tears.Rmd
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)
```
22 changes: 21 additions & 1 deletion 03-race.Rmd
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.
6 changes: 3 additions & 3 deletions docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@
<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> Down the rabbit-hole</a></li>
<li class="chapter" data-level="2" data-path="the-pool-of-tears.html"><a href="the-pool-of-tears.html"><i class="fa fa-check"></i><b>2</b> The pool of tears</a></li>
<li class="chapter" data-level="3" data-path="a-caucus-race-and-a-long-tale.html"><a href="a-caucus-race-and-a-long-tale.html"><i class="fa fa-check"></i><b>3</b> A caucus-race and a long tale</a></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>
Expand Down
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.
15 changes: 8 additions & 7 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@



<link rel="next" href="the-pool-of-tears.html"/>
<link rel="next" href="polling-methods.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" />
Expand Down Expand Up @@ -76,9 +76,9 @@
<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> Down the rabbit-hole</a></li>
<li class="chapter" data-level="2" data-path="the-pool-of-tears.html"><a href="the-pool-of-tears.html"><i class="fa fa-check"></i><b>2</b> The pool of tears</a></li>
<li class="chapter" data-level="3" data-path="a-caucus-race-and-a-long-tale.html"><a href="a-caucus-race-and-a-long-tale.html"><i class="fa fa-check"></i><b>3</b> A caucus-race and a long tale</a></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>
Expand All @@ -103,8 +103,9 @@ <h1 class="title">charts</h1>
<p class="author"><em>by james</em></p>
<p class="date"><em>2024-01-15</em></p>
</div>
<div id="down-the-rabbit-hole" class="section level1 hasAnchor" number="1">
<h1><span class="header-section-number">Chapter 1</span> Down the rabbit-hole<a href="index.html#down-the-rabbit-hole" class="anchor-section" aria-label="Anchor link to header"></a></h1>
<div id="biden-approval-tracking" class="section level1 hasAnchor" number="1">
<h1><span class="header-section-number">Chapter 1</span> Biden Approval Tracking<a href="index.html#biden-approval-tracking" class="anchor-section" aria-label="Anchor link to header"></a></h1>
<p><img src="bookdownproj_files/figure-html/unnamed-chunk-1-1.png" width="672" /></p>

</div>
</section>
Expand All @@ -113,7 +114,7 @@ <h1><span class="header-section-number">Chapter 1</span> Down the rabbit-hole<a
</div>
</div>

<a href="the-pool-of-tears.html" class="navigation navigation-next navigation-unique" aria-label="Next page"><i class="fa fa-angle-right"></i></a>
<a href="polling-methods.html" class="navigation navigation-next navigation-unique" 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>
Expand Down
168 changes: 168 additions & 0 deletions docs/polling-methods.html
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>
Loading

0 comments on commit d9b2b52

Please sign in to comment.