R mipplot package

Travis-CI Build Status

Purpose and Functionality

The mipplot package contains generic functions to produce area/bar/box/line plots of data following the IAMC submission format. The tool can be applied to datasets from climate mitigation scenarios (also known as emission scenarios) generated by means of integrated assessment models (IAM) and energy-economic models, that follow the format adopted for data submissions contributing to IPCC (Intergovernmental Panel on Climate Change) assessment reports. See the extended manual for details.

Installation

Windows

The latest release of mipplot can be installed from a binary package.

  1. Visit the release page on GitHub.

  2. Download the latest zip file (binary package).

  3. Start R.

  4. Set working directory to where the downloaded file is in.

  5. Run following commands.

if (!require("tidyverse")) install.packages("tidyverse")
if (!require("showtext")) install.packages("showtext")
if (!require("shiny")) install.packages("shiny")
if (!require("shinyWidgets")) install.packages("shinyWidgets")
if (!require("data.table")) install.packages("data.table")
if (!require("openxlsx")) install.packages("openxlsx")
if (!require("shiny.i18n")) install.packages("shiny.i18n")
if (!require("shinyalert")) install.packages("shinyalert")
install.packages("mipplot_0.3.0.zip", repos = NULL)

Or via devtools:

if (!require("devtools")) install.packages("devtools")
library(devtools)
devtools::install_github("UTokyo-mip/mipplot", dependencies = TRUE)

Mac OS

The latest release of mipplot can be installed from a binary package.

  1. Visit the release page on GitHub.

  2. Download the latest tar.gz file (source package).

  3. Start R.

  4. Set working directory to where the downloaded file is in.

  5. Run following commands.

if (!require("tidyverse")) install.packages("tidyverse")
if (!require("showtext")) install.packages("showtext")
if (!require("shiny")) install.packages("shiny")
if (!require("shinyWidgets")) install.packages("shinyWidgets")
if (!require("data.table")) install.packages("data.table")
if (!require("openxlsx")) install.packages("openxlsx")
if (!require("shiny.i18n")) install.packages("shiny.i18n")
if (!require("shinyalert")) install.packages("shinyalert")
install.packages("mipplot_0.3.0.tar.gz", repos = NULL)

Or via devtools:

if (!require("devtools")) install.packages("devtools")
library(devtools)
devtools::install_github("UTokyo-mip/mipplot", dependencies = TRUE)

Ubuntu (or Debian based distribution)

Run the following commands:

sudo apt install build-essential gfortran g++ libcurl4-openssl-dev libxml2-dev libssl-dev

This commands install the library which tidyverse library depends.

The latest release of mipplot can be installed from a tarball.

  1. Visit the release page on GitHub.

  2. Download the latest tar.gz file (source package).

  3. Start R.

  4. Set working directory to where the downloaded file is in.

  5. Run following commands.

if (!require("tidyverse")) install.packages("tidyverse")
if (!require("showtext")) install.packages("showtext")
if (!require("shiny")) install.packages("shiny")
if (!require("shinyWidgets")) install.packages("shinyWidgets")
if (!require("data.table")) install.packages("data.table")
if (!require("openxlsx")) install.packages("openxlsx")
if (!require("shiny.i18n")) install.packages("shiny.i18n")
if (!require("shinyalert")) install.packages("shinyalert")
install.packages("mipplot_0.3.0.tar.gz", repos = NULL)

Or via devtools:

if (!require("devtools")) install.packages("devtools")
library(devtools)
devtools::install_github("UTokyo-mip/mipplot", dependencies = TRUE)

Example

library(mipplot)
mipplot_area(ar5_db_sample_data, ar5_db_sample_rule_table,
  region = "World", scenario = "EMF27-450-FullTech")

Questions / Problems

In case of questions / problems please contact Diego Silva Herran silva-herran@iges.or.jp.

Screenshots

screenshot

License

The mipplot R package is open source licensed under the MIT license.

Thanks