hvtiPlotR Plot Functions9 days ago
Template Reference Map | Mirrored Propensity Score Histogram | Binary-match mode (SAVR vs. TF-TAVR) | Bare plot | Adding scales, labels, and theme | Weighted IPTW mode (Limited vs. Extended) | Bare plot | Adding scales, labels, and theme | Stacked Histogram | Count histogram | Proportion (fill) histogram | Saving | Goodness-of-Follow-Up Plot | Sample data | Death follow-up plot | Adding scales, labels, and annotations | Non-fatal event panel | Several panels over one window | Role colors across panels | Covariate Balance Plot | Adding color, shape, and axis scales | Adding directional annotations and theme | Controlling covariate order | Kaplan-Meier Survival Curve | Survival curve (PLOTS=1) | Numbers at risk and report table | Stratified analysis | Survival curve with a numbers-at-risk table | Cumulative hazard (PLOTC=1) | Log-log survival plot (Weibull/PH check) | Hazard rate (PLOTH=1) | Integrated survivorship / restricted mean survival (PLOTL=1) | RMST Contrast and Curves | Differences by estimator | Weighted curves with the RMST area | Correlation Matrix | EDA Barplots and Scatterplots | Binary categorical: count barplot | Binary categorical: percentage barplot | Ordinal and multi-level categorical | Character categorical | Continuous: scatter + LOESS | Variable selection and labels (varnames template pattern) | Several variables to a page | Saving EDA plots | Alluvial (Sankey) Plot | Fill flows by pre-operative grade | Two-axis before / after comparison | Cluster Stability Sankey Plot | Default plot (K = 2 to 9) | Custom color palette | Subset of K values | CONSORT Patient Flow Diagram | Building a tracker from your own data | The diagram | Auditing the cohort | Hazard Plot | Survival curve with KM overlay | Hazard rate curve | Cumulative hazard | Stratified by group | Life-table overlay | The hv_hazard() object interface | Survival Difference (Life-Gained) Plot | Survival difference curve | Multiple comparisons | The hv_survival_difference() object interface | Number Needed to Treat (NNT) Plot | NNT curve | Absolute risk reduction | The hv_nnt() object interface | Temporal Trend Plot | Single variable: cases/year | Single variable: age | Multiple groups with scale_color_brewer | Median summary + manual colors (NYHA style) | With confidence ribbon | Binary % outcomes (tp.lp.trends.sas) | Age as x-axis (tp.lp.trends.age.sas) | Polytomous groups: repair types (tp.lp.trends.polytomous.sas) | LV mass index (tp.dp.trends.R, plot2) | Case volume / total surgeries per year (tp.dp.trends.R, plot4) | Annotated trend: hospital LOS (tp.dp.trends.R, plot5) | Spaghetti / Profile Plot | Unstratified: AV mean gradient, full range (plot_1) | Unstratified: zoomed y-axis (plot_3) | Stratified by sex: AV mean gradient (plot_2 / plot_4) | AV area y-scale (plot_5 / plot_6) | DVI y-scale (plot_7 / plot_8) | Ordinal y-axis: MV regurgitation grade (plot_9) | With LOESS smooth overlay | Nonparametric Temporal Trend Curve | Single average curve with 68 % CI ribbon | Two-group comparison (analogous to tp.np.avpkgrad_ozak_ind_mtwt.sas) | Nonparametric Ordinal Outcome Curve | Grade probability curves with data summary points | Combined mild + moderate (p34 = p3 + p4 pattern) | Longitudinal Participation Counts | Bar chart | Numeric table panel | Two-panel layout with patchwork | Saving the combined figure | UpSet Plot | Default plot | Custom intersection bar color | Color bars by era | Venn diagram (2-3 sets) | Draft Footnotes | Draft annotation pattern | Custom analyst tag | Saving without the footnote
hvtiPlotR 2.8.16John Ehrlinger plot-functions.qmd