forked from AdamWilsonLabEDU/2024-geo511-spatial-data-science-case-studies-geo511_casestudy_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
Showing
14 changed files
with
3,907 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,58 @@ | ||
--- | ||
title: "Case Study 08" | ||
author: Festus Adegbola | ||
date: Oct 24, 2024 | ||
output: github_document | ||
format: | ||
html: default | ||
gfm: default | ||
pptx: default | ||
docx: default | ||
--- | ||
|
||
#Load Library | ||
```{r} | ||
library(ggplot2) | ||
library(dplyr) | ||
library(kableExtra) | ||
library(webshot2) | ||
``` | ||
|
||
#Data The data used here is the **Mauna Loa CO2 annual mean data**. It can be found at \[NOAA Global Monitoring Laboratory\] (https://gml.noaa.gov/ccgg/trends/data.html) | ||
|
||
##Load Data | ||
|
||
```{r, loading data} | ||
CO2mean <- readr::read_table("ftp://aftp.cmdl.noaa.gov/products/trends/co2/co2_annmean_mlo.txt", | ||
skip = 57, | ||
comment = "#", | ||
col_names = c("Year", "Mean", "Uncertainty")) | ||
``` | ||
|
||
#Plot | ||
|
||
```{r} | ||
ggplot(CO2mean, aes(Year, Mean))+ | ||
geom_line(color="red", size=3) + | ||
theme_classic()+ | ||
labs(title="Annual Mean Carbon Dioxide Concentrations 1959-Present", | ||
x= "Year", | ||
y= "Mauna Loa CO2 Annual Mean") | ||
``` | ||
|
||
#Top Five Annual Mean Carbon Dioxide Concentrations at Mona Loa | ||
|
||
```{r} | ||
CO2mean %>% | ||
arrange(desc(Mean)) %>% | ||
slice_head(n = 5) %>% | ||
knitr::kable() %>% | ||
kable_styling(position = "center") %>% | ||
as_image(width = 10,file = "table.png") | ||
``` | ||
|
||
```{r} | ||
#quarto::render("/Users/festusad/Documents/SpatialDataScience/Case_Assignments/week_08",output_format = "all") | ||
``` | ||
|
||
------------------------------------------------------------------------ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,078 changes: 2,078 additions & 0 deletions
2,078
week_08/Quarto_files/libs/bootstrap/bootstrap-icons.css
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
203 changes: 203 additions & 0 deletions
203
week_08/Quarto_files/libs/quarto-html/quarto-syntax-highlighting.css
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.