This repository, owned by the user zonination (Zoni Nation), presents a data visualization and analysis project on long-term returns from broad stock market indexes, especially the S&P 500. The author gathers historical price data (adjusted for inflation and dividends) and computes growth trajectories under a “buy and hold” strategy over decades. The key insight illustrated is that over sufficiently long holding periods (e.g. 40 years), the stock market stabilizes and nearly always yields positive returns, even accounting for extreme market crashes and recessions. The visualizations show “return curves” for different starting years and durations, and also illustrate the probability of losses over various time horizons. The project is centered on transparency in finance and encourages users to examine the data themselves; the code is shared in R and uses ggplot2 for plotting.

Features

  • Historical return trajectory plotting for index investments over many years
  • “Cash multiplier” visualization (growth factor after inflation and dividends)
  • Empirical probability estimates of loss over different holding periods
  • Use of R, tidy data, and ggplot2 for expressive visual storytelling
  • Public code with emphasis on transparency and reproducibility
  • Highlighting stability over long horizons and the “time in market” thesis

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Investing

Investing Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Investing!

Additional Project Details

Programming Language

R

Related Categories

R Libraries

Registered

2025-10-01