This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env Rscript | |
| # ═══════════════════════════════════════════════════════════════ | |
| # US Equity (S&P 500 TR / VTI) — Log-Trend & Super-Cycle Analysis | |
| # Charts: 1_ Price+Trend, 2_ Deviation+Supertrend, 3_ Normalized | |
| # Data: ERN SWR Toolbox (1871–2025) + Yahoo Finance (recent) | |
| # ═══════════════════════════════════════════════════════════════ | |
| library(tidyverse) | |
| library(quantmod) | |
| library(ggrepel) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env Rscript | |
| # ═══════════════════════════════════════════════════════════════ | |
| # World Equity (Blended US + ex-US / VT) — Log-Trend & Super-Cycle | |
| # Charts: 1_ Price+Trend, 2_ Deviation+Supertrend, 3_ Normalized | |
| # Data: ERN SWR Toolbox (1871–2025) + Yahoo Finance (recent) | |
| # Blend uses time-varying US market-cap weights (approx.) | |
| # ═══════════════════════════════════════════════════════════════ | |
| library(tidyverse) | |
| library(quantmod) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env Rscript | |
| # ═══════════════════════════════════════════════════════════════ | |
| # Ex-US Equity (World ex-US / VXUS) — Log-Trend & Super-Cycle | |
| # Charts: 1_ Price+Trend, 2_ Deviation+Supertrend, 3_ Normalized | |
| # Data: ERN SWR Toolbox (1871–2025) + Yahoo Finance (recent) | |
| # ═══════════════════════════════════════════════════════════════ | |
| library(tidyverse) | |
| library(quantmod) | |
| library(ggrepel) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env Rscript | |
| # ═══════════════════════════════════════════════════════════════ | |
| # US Equity (S&P 500 TR / VTI) — Log-Trend & Super-Cycle Analysis | |
| # Charts: 1_ Price+Trend, 2_ Deviation+Supertrend, 3_ Normalized | |
| # Data: ERN SWR Toolbox (1871–2025) + Yahoo Finance (recent) | |
| # ═══════════════════════════════════════════════════════════════ | |
| library(tidyverse) | |
| library(quantmod) | |
| library(ggrepel) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(readr) | |
| library(dplyr) | |
| library(fable) | |
| library(ggplot2) | |
| library(ggrepel) | |
| sf <- 2 | |
| width <- 600 * sf | |
| height <- 335 * sf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(ggplot2) | |
| library(slider) | |
| library(scales) | |
| library(dplyr) | |
| library(readr) | |
| library(tsibble) | |
| sf <- 2 | |
| width <- 600 * sf | |
| height <- 335 * sf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Required libraries | |
| library(ggplot2) | |
| library(dplyr) | |
| library(tsibble) | |
| library(fable) | |
| library(feasts) | |
| library(readr) | |
| sf <- 2 | |
| width <- 600 * sf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(ggplot2) | |
| library(dplyr) | |
| library(tsibble) | |
| library(fable) | |
| library(feasts) | |
| sf <- 2 | |
| width <- 600 * sf | |
| height <- 335 * sf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Required libraries | |
| library(ggplot2) | |
| library(dplyr) | |
| library(tsibble) | |
| library(fable) | |
| library(feasts) | |
| library(readr) | |
| sf <- 2 | |
| width <- 600 * sf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| USER="USMortality" | |
| CHARTS_JSON="out/charts.json" | |
| BASE_URL="https://s3.mortality.watch/charts" | |
| ERROR_LOG="error.log" | |
| # Delay between processing each gist (seconds) |
NewerOlder