MyNixOS website logo
Description

Automating 'GTAP' Data Processing and Visualization.

Tools to streamline the extraction, processing, and visualization of Computable General Equilibrium (CGE) results from 'GTAP' models. Designed for compatibility with both .har and .sl4 files, the package enables users to automate data preparation, apply mapping metadata, and generate high-quality plots and summary tables with minimal coding. 'GTAPViz' supports flexible export options (e.g., Text, CSV, 'Stata', or 'Excel' formats). This facilitates efficient post-simulation analysis for economic research and policy reporting. Includes helper functions to filter, format, and customize outputs with reproducible styling.

GTAPViz: R Package for Automating GTAP Data Processing and Visualization

Overview

GTAPViz is an R package designed to streamline the processing and visualization of GTAP-CGE results. While primarily built for GTAP simulations, it also supports other .har and .sl4 datasets.

With intuitive commands and automated adjustments, users can create, customize, and export high-quality visualizations for journal publications, economic analysis, and research reports—all with minimal coding.

Key Features

This package streamlines the creation of figures and tables from .har and .sl4 results, making academic presentations effortless. Some key features are:

  • Effortless Multi-Plot Generation – Automatically adjusts dimensions, facets, and layout with minimal input.

  • Smart Plot Adjustments – Fine-tune visuals easily without manual sizing or layout tweaks.

  • Dual Export Plot Formats – Instantly save high-resolution PNG and PDF outputs for slides, papers, and LaTeX.

  • Publication-Ready Pivot Tables – Generate clean tables alongside figures—ideal for academic papers.

  • Streamlined Styling – Customize colors, fonts, and legends through simple, flexible options.

  • Powerful Yet Simple – Built on ggplot2, with intuitive TRUE/FALSE switches—no advanced coding needed.

  • Self-Contained Help – Includes a detailed vignette and internal help—no need to search online.

Installation

GTAPViz can be installed from GitHub using the following command in R:

devtools::install_github("Bodysbobb/GTAPViz")

Package Helps

The most interactive package help is available via ChatGPT GTAPViz, specifically designed to assist with the GTAPViz package!

For complete instructions on using this package and exploring practical examples:

GTAP Users

For GTAP users seeking minimal or no code modifications, please visit GTAPViz for GTAP Users.

Useful Packages for CGE Fellows

Author:

Pattawee Puangchit
Ph.D. Candidate, Agricultural Economics
Purdue University
Research Assistant at GTAP.

Metadata

Version

1.1.3

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows