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

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start 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