Skip to contents

Advanced Plot Functions

Publication-ready scatter, heatmap and circular plots.

PlotScatter1()
Grouped Scatter Plot with Marginal Boxplots
PlotScatter2()
Dual-Group Scatter Plot with Multi-Variable Marginal Boxplots
PlotScatter3()
Paired Scatter Plot with Rotated Histogram Inset
PlotDumbbell()
Dumbbell Chart for Paired Comparisons
PlotHeatmapJaccard()
Jaccard Similarity Heatmap
PlotRank()
Rank Scatter Plot
PlotCircleLollipop()
Circular Lollipop Chart
PlotButterfly()
Butterfly Chart (Back-to-Back Symmetric Plot)
PlotButterfly2()
Butterfly Plot from Long-Format Data
PlotRankCor()
Rank Correlation Scatter Plot

Plot Functions

High-level plotting functions for categorical data visualization.

plt_cat()
Unified Categorical Variable Plot
plt_con()
Unified Continuous Variable Plot
plt_dist()
Plot Categorical Variable Distribution
plt_cohen()
Plot Cohen's d Effect Sizes
plt_radar()
Radar Chart
plt_sankey()
Sankey Diagram for Categorical Variables
plt_upset()
UpSet and Venn Diagram for Set Intersections

Data Inspection

Explore variables, missing values, and system resources.

lv()
Variable Inspection Generic Function
check_na()
Comprehensive Data Quality Analysis
check_system()
Check System Resources and Environment
check_size()
Analyze Object Sizes in Global Environment
count_packages_in_libpaths()
Count Installed Packages in Each Library Path

Factor Manipulation

Recode, reorder, and transform factor variables.

fct_cat()
Unified Factor Manipulation
fct_num()
Convert Numeric to Factor

Statistical Formatting

Format confidence intervals, p-values, and effect sizes.

stat_ci()
Format Confidence Intervals or Mean (SD)
stat_pval()
Format P-values, Numbers, or Add Stars to Any Value
stat_ci_parse()
Parse Confidence Interval Strings
stat_cohen()
Compute Cohen's d Effect Size by Group

Colour Palettes

Built-in colour palettes and palette utilities.

pal_lancet
Lancet Colour Palette
pal_other
Additional Built-in Colour Palettes
pal_paraSC
Parathyroid Single-Cell Colour Palette
pal_get()
Get Colours from a Named Palette
pal_list()
List All Available Palettes
pal_show()
Visualise Palettes or Colour Vectors
show_color()
Display Colour Swatches in Console
as_palette()
Create a colour palette object
palette_list
Built-in Palette Collection

ggplot2 Formatting

Chain-able ggplot2 formatting helpers.

fmt_plot()
Master plot formatting function
fmt_axis()
Hide or show axis elements for specific plots
fmt_tag()
Add panel labels to plots
fmt_legend()
Format legend position and style
fmt_ref()
Add reference lines to plots
fmt_strip()
Add facet strip labels to a plot
fmt_com()
Add pairwise statistical comparisons
fmt_bg()
Add coloured background stripes
fmt_his()
Add marginal histogram or density overlay
fmt_scale()
Set axis scales
fmt_expand()
Set axis expansion
fmt_boxplot()
Overlay a boxplot layer
fmt_point()
Add Data Points to a Plot
flatten_patchwork()
Flatten nested patchwork objects

Themes

ggplot2 themes.

theme_my()
Custom ggplot2 Theme Based on ggprism
theme_km
Kaplan-Meier Plot Theme
theme_rcs
RCS (Restricted Cubic Spline) Plot Theme
theme_legend1()
Compact Legend Theme
theme_blank()
Blank Theme with Coordinate Arrows
theme_sc()
Single-Cell Style Theme

Grob Utilities

Helpers for manipulating ggplot2 grobs.

grob_add()
Add a Grob to a Gtable at a Specified Position
grob_as()
Convert a Plot Object to a Grob
grob_insert()
Insert an Inset Plot Inside Another Plot
grob_to_gg()
Convert a Grob or Gtable Back to a ggplot Object

Console Display

Styled console output helpers.

console_width()
Get console width

Operators

Convenience operators.

`%<>%`
Compound assignment pipe operator
`%ni%`
Not-in operator
%>% %||%
Pipe operator