Skip to contents

Layer Functions

Functions that allow you to add layers to your plot, such as lanes and markers.

geom_swim_lane()
Add lanes to swimmer plots
geom_swim_marker()
Add markers to swimmer plots
geom_swim_arrow()
Add arrows to swimmer plot lanes

Scale Functions

Functions that assist with cleaning up the legend and assigning aesthetic connections.

scale_marker_discrete()
Position scales for discrete marker data

Theme Functions

Functions to change the theme and make your swimmer plot pop!

theme_ggswim() theme_ggswim_dark()
Apply custom theme styling for ggplot2 plots

Datasets

Example datasets for testing the package, resembling a sample longitudinal clinical trial.

patient_data
Patient Data dataset
infusion_events
Infusion Events dataset
end_study_events
End of Study Events dataset
.default_glyphs .default_colours .default_limits
ggswim marker defaults