Skip to contents

Overview

GTAPViz is an R package designed to streamline the processing and visualization of GTAP model results. While primarily built for GTAP simulations, it also supports other .HAR and .SL4 datasets.

As an extension of HARplus GTAPViz simplifies GTAP data extraction and visualization, reducing manual effort and enhancing efficiency.

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

  • Automated Plot Adjustments – Optimizes plot dimensions, facet settings, and layout dynamically with minimal user input.
  • Academic-Style Pivot Table – Automatically generates tables alongside figures, making it easy to include both in academic papers.
  • Intuitive Customization – Modify colors, fonts, legend positions, and other styling elements using simple, adaptable commands.
  • Full Customization Without Complexity – Built on ggplot2, this package simplifies adjustments into intuitive commands like TRUE/FALSE, eliminating the need for deep coding.
  • Multiple Export Formats – Save high-resolution figures in PNG and PDF formats simultaneously for presentations, publications, and LaTeX reports.
  • Comprehensive Documentation – Includes a vignette and built-in help functions covering all customization options—no need to search online.

Installation

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

devtools::install_github("Bodysbobb/GTAPViz")

Then, you can access the package manual using:

help(package = "GTAPViz")

Comprehensive Documentation

For full details on how to use this package and explore practical examples, see the GTAPViz Vignette or GitHub GTAPViz.

For the R reference manual, see the GTAPViz Reference Manual.

License & Author

GTAPViz is released under the MIT License. See the full license.

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