Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TempTales — Temperature Dashboard (R)

An interactive R Shiny dashboard for exploring historical land surface temperature trends across countries from 1860 to 2013. Built as an R port of the original Python Shiny application.

🌍 Live App

View the deployed dashboard here


About

TempTales lets you compare average temperatures between any two years for any country in the dataset. Features include:

  • World heatmap showing temperature by country for the selected year
  • Monthly temperature comparison chart (baseline vs target year)
  • Seasonal temperature table with color-coded change indicators
  • Historical events contextualizing the selected year range
  • Data export via CSV download

Dataset: Berkeley Earth Surface Temperature — monthly average land temperatures by country.


Installation

Prerequisites

  • R (>= 4.1.0)
  • RStudio (recommended)

1. Clone the repository

git clone https://github.com/Purityj/TempTale_Dashboard_R.git
cd TempTale_Dashboard_R

2. Install required packages

Open RStudio, then run:

source("install.R")

This installs all required packages: shiny, bslib, dplyr, plotly, DT, and readr.

3. Download the data

Download the dataset from Kaggle: Berkeley Earth Climate Data

Place GlobalLandTemperaturesByCountry.csv in:

data/raw/GlobalLandTemperaturesByCountry.csv

Running the App

In the RStudio console, run:

shiny::runApp()

Or navigate to app.R and click on "Run App" button.


Project Structure

TempTale_Dashboard_R/
├── app.R              # App entry point
├── ui.R               # UI layout (navbar, sidebar, cards)
├── server.R           # Server logic and reactive outputs
├── install.R          # Package installation script
├── manifest.json      # Posit Connect deployment manifest
├── R/
│   ├── utils.R        # Data loading and pre-aggregation
│   ├── data_count.R   # Helper: temperature display text
│   ├── plot.R         # Plotly chart builders
│   └── map.R          # Choropleth map builder
└── data/
    └── raw/
        └── GlobalLandTemperaturesByCountry.csv

Author

Purity Jangaya

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages