--time-col | e.g., "time_months" | Standard; always required | Different datasets use different column names |
--event-col | e.g., "event_status" | Standard; always required | Must specify which column codes censoring |
--group-col | e.g., "treatment" | Comparing 2+ groups | Leave empty for single-group KM |
--split-by-median | True | High-dimensional data (gene expression, biomarkers) | Dichotomize continuous variable at median |
--split-col | "expression_level" | Used with --split-by-median | Specify the continuous variable to split |
--show-ci | True | Publication figures | Standard in clinical/biomedical publications |
--show-at-risk | True | Clinical presentations | Shows how many subjects at risk at each time |
--show-median | True | When median survival meaningful | Most cancer/event-free survival analyses |
--show-pvalue | True | Comparative studies | Report p-value to show statistical significance |
--test | "logrank" (default) | Most time-to-event data | Standard test for overall group differences |
--test | "wilcoxon" | Early events more relevant | More weight on early time points |
--test | "both" | Robust reporting | Show both tests to assess consistency |
--time-unit | "months" | Human-readable labels | Adjust axis label (days, months, years) |
--xlim | 24 | Focus on early follow-up | Truncate x-axis to relevant time window |
--dpi | 300 (default) | Publication submission | High resolution for print/PDF |
--dpi | 150 | Slide presentations | Adequate for screens, smaller file size |
--fig-width | 8-10 | Standard presentation width | 8 for slides, 9-10 for papers |
--fig-height | 6-7 | Standard presentation height | 6 for compact figure, 7 for readability |
--palette | "Set1" (default) | Most applications | Good color contrast and colorblind-friendly |
--palette | "tab10" | Many groups (5+) | More distinct colors than Set1 |
--palette | "custom" | Custom brand colors | Provide via --group-colors |
--linewidth | 2.0 (default) | Standard line width | Increase to 3+ for large poster figures |
--censoring-marks | True (default) | Publication figures | Shows where censoring occurred |
--censoring-symbol | "+" (default) | Standard in clinical papers | Can change to "o" or other marker |
--pvalue-location | "top_right" (default) | Most figures | Avoids overlapping survival curves |