Skip to contents

This article covers the visualisation functions available in the package.

Age Pyramid

agepyramid(
  data = histopathology,
  age = "Age",
  gender = "Sex",
  female = "Female"
)

Alluvial Diagrams

alluvial(
  data = histopathology,
  vars = vars(Grade, LVI, PNI),
  fill = "first_variable"
)

Benford Analysis

benford(data = histopathology, var = "TumorSize")

Venn Diagrams

venn(data = histopathology, vars = vars(LVI, PNI, PreinvasiveComponent))

Variable Trees

vartree(
  data = histopathology,
  vars = vars(Grade, LVI, PNI),
  percvar = "Grade",
  percvarLevel = "High"
)

Waterfall and Spider Plots

waterfall(
  data = treatmentResponse,
  patientID = "PatientID",
  responseVar = "Response",
  timeVar = "Month",
  inputType = "percentage",
  showWaterfallPlot = TRUE,
  showSpiderPlot = TRUE
)

These code snippets illustrate the core visualisation tools included in ClinicoPathDescriptives.