Skip to content
A bot that generates + tweets a daily chart illustrating atmospheric CO2 concentrations
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.

Carbot Dioxide

Hello! Carbot Dioxide is an R bot that pulls the most recent global atmospheric CO2 concentration average from NOAA, generates a ggplot2 chart with the data, and tweets it out. The main file is tweet-it.R. Thanks to the BBC for inspiration (especially Alison Benjamin and Wes Stephenson!).

To store credentials for the rtweet package, follow the instructions here. You'll also need the development version of ggplot2:


The production bot runs on an EC2 instance, but you could also schedule it to run in the terminal with crontab and Rscript, e.g.:

crontab -e
30 8 * * * cd ~/path/to/co2-bot; /path/to/system/Rscript /path/to/tweet-it.R  # to run the bot at 8:30am every day

example chart

You can’t perform that action at this time.