A modern, modular ecosystem for international economic and social data analysis in R
This ecosystem is currently under active development and should be considered experimental. Expect frequent changes, potential bugs, and breaking changes in the API. Use at your own risk for production work.
- 🚧 Active Development: Core functionality is being implemented and tested
- 🔄 Breaking Changes: APIs may change without notice during development
- 🐛 Known Issues: Documentation may be incomplete and bugs are expected
- 📋 Feedback Welcome: Please report issues and suggestions
The macroverse is a collection of R packages designed for seamless analysis of global economic and social panel data. Following the tidyverse model, macroverse provides specialized packages that work together while remaining independent and focused.
| Package | Description | Status |
|---|---|---|
| macroverse | Meta-package that loads the entire ecosystem | 🚧 In Development |
| macrodata | Access to international economic and social data | 🚧 In Development |
| pplot | Panel data visualization tools | 🚧 In Development |
| isomapper | ISO codes and country mapping utilities | 🚧 In Development |
| Package | Description | Status |
|---|---|---|
| mvcommon | Shared utilities and validation functions | 🚧 In Development |
| mvlazy | Quick analysis templates and convenience functions | 🚧 In Development |
# ⚠️ Warning: Experimental packages - expect bugs and breaking changes
# Install the entire macroverse
devtools::install_github("macroverse-r/macroverse")
library(macroverse)
# Get help and overview
mv_help()# ⚠️ Warning: Individual packages are also experimental
# Install only what you need
devtools::install_github("macroverse-r/macrodata")
devtools::install_github("macroverse-r/pplot")library(macroverse)
# Load GDP data for G7 countries
data <- md_data(
ISO = "G7",
formula = "GDP_C",
years = c(2010, 2023)
)
# Create visualization
pp_plot_series(data, title = "G7 GDP Trends")# Balance of payments analysis
ml_quick("USA", c(2010, 2023), graph = "bop")
# Trade analysis with custom theme
ml_quick(c("CHN", "DEU", "JPN"), c(2015, 2023),
graph = "trade",
theme = list(normalization = "GDP"))# Convert country names to ISO codes
im_ctry2iso(c("United States", "Germany", "Japan"))
#> [1] "USA" "DEU" "JPN"
# Get country groups
eu_countries <- im_get_category("EU")
brics <- im_get_category("BRICS")The macroverse integrates data from major international organizations:
- World Bank (Development Indicators)
- International Monetary Fund (IFS, Balance of Payments)
- Bank for International Settlements (Credit, Banking)
- OECD (Main Economic Indicators)
- Academic Sources (Jordà-Schularick-Taylor, KOF, EM-DAT, etc.)
- 🔗 Modular Design: Use packages independently or together
- 📈 Rich Visualizations: Publication-ready plots with minimal code
- 🌍 Global Coverage: 200+ countries and territories
- ⏱️ Time Series: Quarterly and yearly data from 1960s onwards
- 🎨 Quick Templates: Pre-configured analysis workflows
- 🗺️ ISO Standards: Comprehensive country code mapping
- 📚 Extensive Documentation: Comprehensive guides and examples
We welcome contributions! Please see our Contributing Guidelines for details.
# Clone the ecosystem
git clone https://github.com/macroverse-r/macroverse.git
cd macroverse
# Install development dependencies
Rscript -e "devtools::install_deps(dependencies = TRUE)"The macroverse ecosystem uses a dual licensing model:
- 🎓 Open Source: AGPL-3.0 for academic and non-commercial use
- 💼 Commercial: Alternative licensing available for commercial applications
For commercial licensing inquiries, please contact the maintainer.
The macroverse represents a complete refactoring of the original WPD (World Panel Data) package, following modern R package development best practices and the tidyverse model.
If you're migrating from the WPD package:
# Old WPD syntax
wp_data(ISO = "USA", formula = "GDP_C", years = c(2020, 2023))
wp_plot_series(data)
# New macroverse syntax
md_data(ISO = "USA", formula = "GDP_C", years = c(2020, 2023))
pp_plot_series(data)Benjamin Peeters
Postdoctoral Researcher, PIK (Potsdam Institute for Climate Impact Research)
📧 Contact: [email protected]
🌐 Website: benjaminpeeters.com