From 5bfc3d9600319bac9070c816c9a43e6e30e0e255 Mon Sep 17 00:00:00 2001 From: medusa Date: Wed, 2 Jul 2025 07:02:31 +0000 Subject: [PATCH] Update tech_docs/webdev/hugo.md --- tech_docs/webdev/hugo.md | 119 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) diff --git a/tech_docs/webdev/hugo.md b/tech_docs/webdev/hugo.md index 0e1ea59..2ef3a89 100644 --- a/tech_docs/webdev/hugo.md +++ b/tech_docs/webdev/hugo.md @@ -1,3 +1,122 @@ +For **statistics and data science visuals** in hobby projects (e.g., distributions, regression plots, time series, clustering), here’s the optimal workflow balancing **quality, performance, and ease of use**: + +--- + +### **1. Recommended Tools by Task** +#### **A. Static Visuals (PNG/SVG)** +| Task | Best Tool (Python) | Best Tool (R) | Output Format | +|-----------------------|--------------------------|------------------------|---------------| +| Distributions | Seaborn (`histplot`, `kdeplot`) | ggplot2 (`geom_histogram`, `geom_density`) | PNG (if dense data) / SVG (if simple) | +| Scatter/Regression | Seaborn (`regplot`, `lmplot`) | ggplot2 (`geom_smooth`, `geom_point`) | SVG (for interactivity later) | +| Time Series | Matplotlib (`plot_date`) + Seaborn | ggplot2 (`geom_line`) | PNG (long series) | +| Heatmaps/Correlation | Seaborn (`heatmap`) | ggplot2 (`geom_tile`) | PNG (large matrices) | +| Box/Violin Plots | Seaborn (`boxplot`, `violinplot`) | ggplot2 (`geom_boxplot`) | SVG | + +#### **B. Interactive Visuals (Embeddable in Hugo)** +| Task | Best Tool | Output Format | +|-----------------------|--------------------------|------------------------| +| Exploratory hover plots | Plotly Express (Python/R) | HTML (embed as `