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
Build Securely on AWS with Proven Frameworks Icon
Build Securely on AWS with Proven Frameworks

Lay a foundation for success with Tested Reference Architectures developed by Fortinet’s experts. Learn more in this white paper.

Moving to the cloud brings new challenges. How can you manage a larger attack surface while ensuring great network performance? Turn to Fortinet’s Tested Reference Architectures, blueprints for designing and securing cloud environments built by cybersecurity experts. Learn more and explore use cases in this white paper.
Download Now
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