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
get data from https://www.met.ie/climate/available-data/historical-data | |
for Dublin airport | |
```{r} | |
dub<-read_csv('dly532.csv', skip=25, col_names = TRUE) | |
head(dub) | |
``` | |
date looks like 01-jan-1942 | |
separate it out into 3 columns |
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
#choose or open the file directly | |
f <- file.choose() | |
library(dplyr) | |
trust <- read.csv(f) | |
#trust <- read.csv("HadCRUT.csv",header=TRUE) | |
head(trust) | |
#names(trust)[names(trust) == 'Anomaly..deg.C.'] <- "Anomaly..deg.C" | |
#if graphing all not filtering by year | |
vac<-trust | |
vac<-trust %>% |
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
Year | Recorded | |
---|---|---|
1975 | 49293 | |
1980 | 52552 | |
1985 | 38637 | |
1988 | 35251 | |
1990 | 23484 | |
1993 | 10487 | |
1995 | 7035 | |
2000 | 719 | |
2005 | 1979 |
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
Country | vaccinated | long | lat | |
---|---|---|---|---|
Denmark | 77.4 | 10.445 | 55.728 | |
Belgium | 75.2 | 4.39 | 50.86 | |
Austria | 66.5 | 15.3 | 47.97 | |
Croatia | 48.4 | 16.173 | 45.567 | |
Albania | 36.1 | 19.8 | 41.28 | |
Belarus | 29.2 | 27.56 | 53.9 | |
Bosnia | 24.4 | 18.41 | 43.86 | |
Iceland | 82.5 | -21.95 | 64.15 | |
Ireland | 76.8 | -7.063 | 53.208 |
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
trust <- read.csv("self-reported-trust-attitudes.csv",header=TRUE) | |
library(dplyr) | |
trust <- trust %>% | |
group_by(Entity) %>% | |
filter(Year == max(Year)) | |
vac <- read.csv("owid-covid-data (1).csv",header=TRUE) | |
vac<-vac %>% | |
dplyr::select(people_vaccinated_per_hundred, location, date) |
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
library(ggplot2) | |
library(waffle) | |
people <- c(`Vaccinated `=91,`Vaccinated in ICU`=1, `Unvaccinated`=7, | |
`Unvaccinated in ICU `=1) | |
waffle(people, rows=10, size=0.6, | |
colors=c("#44D2AC", "#E48B8B", "#B67093", | |
"#3A9ABD"), | |
title="Irish Adults", |
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
df <- | |
readr::read_csv("https://projects.oregonlive.com/weather/pdx_temps.csv") | |
#Jun$Temp <- cut(Jun$tmax, breaks=c(50,104, Inf), labels=c("50","100+")) | |
Jun$Temp <- cut(Jun$tmax, breaks=c(50,60,70,80,90,100, Inf), labels=c("50","60","70","80","90","100+")) | |
hot <- c("#6BBCD1","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#b10026","#FF2A24") | |
#hot <- c("#000000","#FF2A24") |
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
#data from https://datagraver.com/case/kyoto-cherry-blossom-full-flower-dates#google_vignette | |
df <- read.csv(file ="kyoto_dates_cherryblossom2021.csv") | |
library(tidyverse) | |
df<-df %>% drop_na() | |
library(lubridate) | |
df<-df %>% select(Year, Month, Day) %>% | |
mutate(date2 = make_date(Year, Month, Day)) | |
df <- df %>% | |
mutate(dated = yday(date2)) | |
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
Count | Company | Percentage of global industrial greenhouse gas emissions | |||||
---|---|---|---|---|---|---|---|
1 | China (Coal) | 14.32% | |||||
2 | Saudi Arabian Oil Company (Aramco) | 4.50% | |||||
3 | Gazprom OAO | 3.91% | |||||
4 | National Iranian Oil Co | 2.28% | |||||
5 | ExxonMobil Corp | 1.98% | |||||
6 | Coal India | 1.87% | |||||
7 | Petroleos Mexicanos (Pemex) | 1.87% | |||||
8 | Russia (Coal) | 1.86% | |||||
9 | Royal Dutch Shell PLC | 1.67% |
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
library(tidyverse) | |
library(lubridate) | |
library(scales) | |
#Data | |
#https://ourworldindata.org/coronavirus/country/united-states?country=~USA | |
#war https://en.wikipedia.org/wiki/List_of_battles_with_most_United_States_military_fatalities | |
df<-read.csv("daily-covid-deaths-7-day.csv", header=TRUE) | |
#Look at US |