Package: GTAPViz 1.3.0

GTAPViz: 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. Also includes a Model Context Protocol ('MCP') server, so AI assistants can run these tools on the user's computer and record every step as a reproducible R script.

Authors:Pattawee Puangchit [aut, cre]

GTAPViz_1.3.0.tar.gz
GTAPViz_1.3.0.zip(r-4.7-any)GTAPViz_1.3.0.zip(r-4.6-any)GTAPViz_1.3.0.zip(r-4.5-any)
GTAPViz_1.3.0.tgz(r-4.6-any)GTAPViz_1.3.0.tgz(r-4.5-any)
GTAPViz_1.3.0.tar.gz(r-4.7-any)GTAPViz_1.3.0.tar.gz(r-4.6-any)
GTAPViz_1.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
GTAPViz/json (API)

# Install 'GTAPViz' in R:
install.packages('GTAPViz', repos = c('https://bodysbobb.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/bodysbobb/gtapviz/issues

Pkgdown/docs site:https://www.pattawee-pp.com

On CRAN:

Conda:

cge-modelgempackggplot2gtaphar-filesl4-file

5.48 score 3 stars 363 downloads 30 exports 101 dependencies

Last updated from:51ddf85573. Checks:7 WARNING, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develWARNING232
source / vignettesOK265
linux-releaseWARNING194
macos-releaseWARNING159
macos-oldrelWARNING144
windows-develWARNING109
windows-releaseWARNING180
windows-oldrelWARNING240
wasm-releaseOK154

Exports:add_mapping_infoauto_gtapauto_gtap_dataauto_gtap_rdcomparison_plotconvert_unitscreate_decomp_stylecreate_export_configcreate_label_box_varscreate_map_stylecreate_plot_stylecreate_title_formatcreate_trend_stylecreate_vlinedecomp_area_plotdetail_plotdynamic_input_nameget_all_configget_color_paletteget_trend_style_configmap_heatmapmcp_configmcp_installmcp_servepivot_table_with_filterrename_valuereport_tablesort_plot_datastack_plottrend_plot

Dependencies:askpassbase64encbitbit64bslibcachemclassclassIntclicliprcolorspacecountrycodecpp11crayoncurlDBIdigestdplyre1071evaluatefarverfastmapfontawesomefontBitstreamVerafontLiberationfontquiverforcatsfsgdtoolsgenericsggfunggimageggiraphggplot2ggplotifygluegridGraphicsgtableHARplushavenhighrhmshtmltoolshtmlwidgetshttrisobandjquerylibjsonliteKernSmoothknitrlabelinglifecyclemagickmagrittrMASSmemoisemimeopensslopenxlsxopenxlsx2pillarpkgconfigprettyunitsprogressproxypurrrR6rappdirsRColorBrewerRcppreadrrlangrmarkdownrnaturalearths2S7sassscalessfstringdiststringistringrsyssystemfontsterratibbletidyrtidyselecttinytextzdbunitsutf8vctrsviridisLitevroomwithrwkxfunyamlyulab.utilszip

Use GTAPViz with AI Assistants (MCP)
What you need | One-time setup | Try it | Reproducible R script | Privacy | What the AI can do | Troubleshooting

Last update: 2026-11-20
Started: 2026-11-20

Project Setup and Data Extraction
Package Overview | Plot Types | Tables | Project Directory | Input Folder | Mapping Folder | SL4File and HARFile Sheets | FilterData Sheet | R Environment Configuration | Experiment Names | Description and Unit | Output Formats | R Configuration Summary | Automated Data Extraction | Tips | Manual Mapping Files | Sorting Rules | Sample Data

Last update: 2025-04-23
Started: 2025-02-26

GTAPViz: Utilities
Adding Unit and Description Columns | Convert Different Units | Renaming Columns and Data List Names | Sorting Output | Renaming Values | (HARplus) Manual Data Processing | Sample Data

Last update: 2025-04-17
Started: 2025-04-11

Plot: A Step-by-Step Guide
Comparison Plot | Example 1 | GTAP Macro Variable Plot | Detail Plot | Example 2 | === Plot Behavior === | === Variable Display === | === Export Settings === | === Styling === | Stack Plot | Tip | Plot Configurations | Sorting Output | Renaming Values | Sample Data

Last update: 2025-04-17
Started: 2025-04-11

Table: A Step-by-Step Guide
Structured Table | Decomposition Table | Interactive Pivot Tables | Sample Data

Last update: 2025-04-17
Started: 2025-04-11

Readme and manuals

Help Manual

Help pageTopics
Add Mapping Information to GTAP Dataadd_mapping_info
Process Static GTAP Data with Simplified Parameter Structureauto_gtap
Process GTAP Data Automation with Flexible Output Optionsauto_gtap_data
Process GTAP Recursive Dynamic Data with Multi-Case Supportauto_gtap_rd
Create Comparative Bar Charts from HAR and SL4 Datacomparison_plot
Convert Units in GTAP Dataconvert_units
Create Decomposition Area Plot Style Configurationcreate_decomp_style
Create an Export Configurationcreate_export_config
Create Label Box Variables Configurationcreate_label_box_vars
Create Map Style Configurationcreate_map_style
Create a Plot Style Configurationcreate_plot_style
Create a Title Format Configurationcreate_title_format
Create Trend Plot Style Configurationcreate_trend_style
Create Vertical Line Configurationcreate_vline
Create Decomposition Area Charts Over Timedecomp_area_plot
Create Comprehensive Bar Charts from HAR and SL4 Datadetail_plot
Generate Dynamic Input Mapping for GTAP Experimentsdynamic_input_name
Print Plot and Export Configuration Snippetsget_all_config
Print and Visualize Themed Color Palettesget_color_palette
Get Trend Plot Style Configuration Helperget_trend_style_config
Create Country/Region Heatmapsmap_heatmap
Show the GTAPViz MCP Server Settingsmcp_config
Connect GTAPViz to Your AI App (One-Time Setup)mcp_install
Start the GTAPViz MCP Server for AI Assistantsmcp_serve
Export Data as an Excel Pivot Tablepivot_table_with_filter
Rename Values in a Columnrename_value
Generate a Structured Report Tablereport_table
Sort GTAP Plot Datasort_plot_data
Create Stacked Bar Charts for Decomposition Analysisstack_plot
Create Time Trend Line Plots from GTAP Datatrend_plot