diff --git a/02-tears.Rmd b/02-tears.Rmd index d3f76d7..2d1030a 100644 --- a/02-tears.Rmd +++ b/02-tears.Rmd @@ -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) +``` diff --git a/03-race.Rmd b/03-race.Rmd index 3045d7b..6f9085c 100644 --- a/03-race.Rmd +++ b/03-race.Rmd @@ -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) +``` \ No newline at end of file diff --git a/bookdownproj_files/figure-html/unnamed-chunk-1-1.png b/bookdownproj_files/figure-html/unnamed-chunk-1-1.png new file mode 100644 index 0000000..0528e29 Binary files /dev/null and b/bookdownproj_files/figure-html/unnamed-chunk-1-1.png differ diff --git a/bookdownproj_files/figure-html/unnamed-chunk-2-1.png b/bookdownproj_files/figure-html/unnamed-chunk-2-1.png new file mode 100644 index 0000000..b6dd3ba Binary files /dev/null and b/bookdownproj_files/figure-html/unnamed-chunk-2-1.png differ diff --git a/bookdownproj_files/figure-html/unnamed-chunk-3-1.png b/bookdownproj_files/figure-html/unnamed-chunk-3-1.png new file mode 100644 index 0000000..6227d2b Binary files /dev/null and b/bookdownproj_files/figure-html/unnamed-chunk-3-1.png differ diff --git a/docs/404.html b/docs/404.html index b50ed7f..8954848 100644 --- a/docs/404.html +++ b/docs/404.html @@ -76,9 +76,9 @@
  • Projects Blog
  • -
  • 1 Down the rabbit-hole
  • -
  • 2 The pool of tears
  • -
  • 3 A caucus-race and a long tale
  • +
  • 1 Biden Approval Tracking
  • +
  • 2 Polling Methods
  • +
  • 3 Pollsters
  • Published with bookdown
  • diff --git a/docs/bookdownproj_files/figure-html/unnamed-chunk-1-1.png b/docs/bookdownproj_files/figure-html/unnamed-chunk-1-1.png new file mode 100644 index 0000000..0528e29 Binary files /dev/null and b/docs/bookdownproj_files/figure-html/unnamed-chunk-1-1.png differ diff --git a/docs/bookdownproj_files/figure-html/unnamed-chunk-2-1.png b/docs/bookdownproj_files/figure-html/unnamed-chunk-2-1.png new file mode 100644 index 0000000..b6dd3ba Binary files /dev/null and b/docs/bookdownproj_files/figure-html/unnamed-chunk-2-1.png differ diff --git a/docs/bookdownproj_files/figure-html/unnamed-chunk-3-1.png b/docs/bookdownproj_files/figure-html/unnamed-chunk-3-1.png new file mode 100644 index 0000000..6227d2b Binary files /dev/null and b/docs/bookdownproj_files/figure-html/unnamed-chunk-3-1.png differ diff --git a/docs/index.html b/docs/index.html index b820d69..997deac 100644 --- a/docs/index.html +++ b/docs/index.html @@ -31,7 +31,7 @@ - + @@ -76,9 +76,9 @@
  • Projects Blog
  • -
  • 1 Down the rabbit-hole
  • -
  • 2 The pool of tears
  • -
  • 3 A caucus-race and a long tale
  • +
  • 1 Biden Approval Tracking
  • +
  • 2 Polling Methods
  • +
  • 3 Pollsters
  • Published with bookdown
  • @@ -103,8 +103,9 @@

    charts

    by james

    2024-01-15

    -
    -

    Chapter 1 Down the rabbit-hole

    +
    +

    Chapter 1 Biden Approval Tracking

    +

    @@ -113,7 +114,7 @@

    Chapter 1 Down the rabbit-hole

    - + diff --git a/docs/polling-methods.html b/docs/polling-methods.html new file mode 100644 index 0000000..338c8f4 --- /dev/null +++ b/docs/polling-methods.html @@ -0,0 +1,168 @@ + + + + + + + Chapter 2 Polling Methods | charts + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + +
    + +
    +
    + + +
    +
    + +
    +
    +

    Chapter 2 Polling Methods

    +

    + +
    +
    + +
    +
    +
    + + +
    +
    + + + + + + + + + + + + + diff --git a/docs/pollsters.html b/docs/pollsters.html new file mode 100644 index 0000000..2bd98e8 --- /dev/null +++ b/docs/pollsters.html @@ -0,0 +1,168 @@ + + + + + + + Chapter 3 Pollsters | charts + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + +
    + +
    +
    + + +
    +
    + +
    +
    +

    Chapter 3 Pollsters

    +

    + +
    +
    + +
    +
    +
    + + +
    +
    + + + + + + + + + + + + + diff --git a/docs/reference-keys.txt b/docs/reference-keys.txt index ad13c4a..f7a1b19 100644 --- a/docs/reference-keys.txt +++ b/docs/reference-keys.txt @@ -1,3 +1,3 @@ -down-the-rabbit-hole -the-pool-of-tears -a-caucus-race-and-a-long-tale +biden-approval-tracking +polling-methods +pollsters diff --git a/docs/search_index.json b/docs/search_index.json index 1dd5fe1..21f1ec3 100644 --- a/docs/search_index.json +++ b/docs/search_index.json @@ -1 +1 @@ -[["index.html", "charts Chapter 1 Down the rabbit-hole", " charts by james 2024-01-15 Chapter 1 Down the rabbit-hole "],["the-pool-of-tears.html", "Chapter 2 The pool of tears", " Chapter 2 The pool of tears "],["a-caucus-race-and-a-long-tale.html", "Chapter 3 A caucus-race and a long tale", " Chapter 3 A caucus-race and a long tale "],["404.html", "Page not found", " Page not found The page you requested cannot be found (perhaps it was moved or renamed). You may want to try searching to find the page's new location, or use the table of contents to find the page you are looking for. "]] +[["index.html", "charts Chapter 1 Biden Approval Tracking", " charts by james 2024-01-15 Chapter 1 Biden Approval Tracking "],["polling-methods.html", "Chapter 2 Polling Methods", " Chapter 2 Polling Methods "],["pollsters.html", "Chapter 3 Pollsters", " Chapter 3 Pollsters "],["404.html", "Page not found", " Page not found The page you requested cannot be found (perhaps it was moved or renamed). You may want to try searching to find the page's new location, or use the table of contents to find the page you are looking for. "]] diff --git a/index.Rmd b/index.Rmd index b2a3851..df11607 100644 --- a/index.Rmd +++ b/index.Rmd @@ -5,5 +5,23 @@ date: "`r Sys.Date()`" site: bookdown::bookdown_site --- -# Down the rabbit-hole +# Biden Approval Tracking +```{r,echo = FALSE, results = 'hide', warning = FALSE,message=FALSE, fig.height=5} +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') + +``` \ No newline at end of file