flowchart TD
A[Select Visualization Type] --> B{Number of Variables}
B -->|One Variable| C{Variable Type?}
B -->|Two Variables| D{Variable Types?}
B -->|Three+ Variables| E{Variable Types?}
C -->|Quantitative| C0{Analysis Goal?}
C -->|Categorical| C2[Bar Plot or Pie Chart<br/>Show frequencies]
C0 -->|Show Distribution| C1[Histogram or KDE<br/>Density estimation]
C0 -->|Check Normality| C3[QQ Plot<br/>Assess assumptions]
D -->|Both Quantitative| D1[Scatter Plot<br/>Show relationship]
D -->|Quant + Categorical| D2[Box, Violin, or Strip Plot<br/>Compare distributions]
D -->|Both Categorical| D3[Grouped or Stacked Bar Plot<br/>Show frequencies]
D -->|Time + Quantitative| D4[Line Plot<br/>Show trends]
E -->|All Quantitative| E0{Analysis Goal?}
E -->|Quant + Categorical| E2[Faceted Plots<br/>Compare subgroups]
E0 -->|Pairwise Relationships| E3[Pair Plot<br/>Explore all pairs]
E0 -->|Correlation Structure| E1[Correlation Heatmap<br/>Show matrix]
style A fill:#FFB74D,stroke:#E65100,stroke-width:4px,color:#000000
style B fill:#FFCC80,stroke:#E65100,stroke-width:2px,color:#000000
style C fill:#FFCC80,stroke:#E65100,stroke-width:2px,color:#000000
style C0 fill:#FFCC80,stroke:#E65100,stroke-width:2px,color:#000000
style D fill:#FFCC80,stroke:#E65100,stroke-width:2px,color:#000000
style E fill:#FFCC80,stroke:#E65100,stroke-width:2px,color:#000000
style E0 fill:#FFCC80,stroke:#E65100,stroke-width:2px,color:#000000
style C1 fill:#64B5F6,stroke:#0D47A1,stroke-width:3px,color:#000000
style C2 fill:#64B5F6,stroke:#0D47A1,stroke-width:3px,color:#000000
style C3 fill:#64B5F6,stroke:#0D47A1,stroke-width:3px,color:#000000
style D1 fill:#81C784,stroke:#1B5E20,stroke-width:3px,color:#000000
style D2 fill:#81C784,stroke:#1B5E20,stroke-width:3px,color:#000000
style D3 fill:#81C784,stroke:#1B5E20,stroke-width:3px,color:#000000
style D4 fill:#81C784,stroke:#1B5E20,stroke-width:3px,color:#000000
style E1 fill:#BA68C8,stroke:#4A148C,stroke-width:3px,color:#FFFFFF
style E2 fill:#BA68C8,stroke:#4A148C,stroke-width:3px,color:#FFFFFF
style E3 fill:#BA68C8,stroke:#4A148C,stroke-width:3px,color:#FFFFFF