Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Hernando committed Aug 4, 2020
1 parent 2339f69 commit 0c82d3c
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,18 @@ anomaly <- get_temp()
plot_temp(anomaly)
```

Visualize warming using Ed Hawkins styled "warming stripes":
```{r stripes, out.width='60%', fig.retina=2}
warming_stripes()
```
```{r stripes2, out.width='53%', fig.retina=2}
warming_stripes(stripe_only = TRUE, col_strip = viridisLite::viridis(11))
```

## Acknowledgments
- Carbon Dioxide dataset: Dr. Pieter Tans, NOAA/GML (www.esrl.noaa.gov/gmd/ccgg/trends/) and Dr. Ralph Keeling, Scripps Institution of Oceanography (www.scrippsco2.ucsd.edu/).
- Global temperature anomaly: *GISS Surface Temperature Analysis (GISTEMP), version 4.* GISTEMP Team, 2020: NASA Goddard Institute for Space Studies. https://data.giss.nasa.gov/gistemp/
- Warming Stripes design from Ed Hawkins' Climate Lab. https://www.climate-lab-book.ac.uk/2018/warming-stripes/. In addition grateful to Dr. Dominic Royé for posting his approach to plotting them using ggplot2, which `warming_stripes()` is based on. https://dominicroye.github.io/en/2018/how-to-create-warming-stripes-in-r/
- Caching data sets: ROpenSci guide to [Persistent config and data for R packages](https://blog.r-hub.io/2020/03/12/user-preferences/) and the [getlandsat](https://docs.ropensci.org/getlandsat/) package.

## Notes and Resources
Expand Down
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,20 @@ plot_temp(anomaly)

<img src="man/figures/README-temp-1.png" width="60%" />

Visualize warming using Ed Hawkins styled “warming stripes”:

``` r
warming_stripes()
```

<img src="man/figures/README-stripes-1.png" width="60%" />

``` r
warming_stripes(stripe_only = TRUE, col_strip = viridisLite::viridis(11))
```

<img src="man/figures/README-stripes2-1.png" width="53%" />

## Acknowledgments

- Carbon Dioxide dataset: Dr. Pieter Tans, NOAA/GML
Expand All @@ -56,6 +70,11 @@ plot_temp(anomaly)
- Global temperature anomaly: *GISS Surface Temperature Analysis
(GISTEMP), version 4.* GISTEMP Team, 2020: NASA Goddard Institute
for Space Studies. <https://data.giss.nasa.gov/gistemp/>
- Warming Stripes design from Ed Hawkins’ Climate Lab.
<https://www.climate-lab-book.ac.uk/2018/warming-stripes/>. In
addition grateful to Dr. Dominic Royé for posting his approach to
plotting them using ggplot2, which `warming_stripes()` is based on.
<https://dominicroye.github.io/en/2018/how-to-create-warming-stripes-in-r/>
- Caching data sets: ROpenSci guide to [Persistent config and data for
R packages](https://blog.r-hub.io/2020/03/12/user-preferences/) and
the [getlandsat](https://docs.ropensci.org/getlandsat/) package.
Expand Down
Binary file added man/figures/README-stripes-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added man/figures/README-stripes-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added man/figures/README-stripes2-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0c82d3c

Please sign in to comment.