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
Go From AI Idea to AI App Fast Icon
Go From AI Idea to AI App Fast

One platform to build, fine-tune, and deploy ML models. No MLOps team required.

Access Gemini 3 and 200+ models. Build chatbots, agents, or custom models with built-in monitoring and scaling.
Try Free
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