knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
ClinicoPathDescriptives
provides a suite of functions for summarising and visualising clinicopathological data. This vignette showcases the main tools in the package with reproducible examples. The package ships with example data sets histopathology
and treatmentResponse
to illustrate typical workflows.
# install.packages("ClinicoPathDescriptives") library(ClinicoPathDescriptives) # Example data data(histopathology) head(histopathology)
Use summarydata()
to obtain descriptive statistics for numeric variables.
summarydata(data = histopathology, vars = vars(Age, TumorSize))
reportcat()
creates frequency tables and counts for categorical variables.
reportcat(data = histopathology, vars = vars(Sex, Grade))
Generate cross tabulations with chi-square tests using crosstable()
.
crosstable( data = histopathology, vars = vars(Sex, Grade), group = "PreinvasiveComponent", sty = "nejm", excl = TRUE )
tableone()
produces formatted baseline characteristic tables for reports.
tableone( data = histopathology, vars = vars(Sex, PreinvasiveComponent, LVI, PNI, Grade, Age), sty = "t3", excl = TRUE )
The package includes multiple plotting functions to explore data.
agepyramid( data = histopathology, age = "Age", gender = "Sex", female = "Female" )
alluvial( data = histopathology, vars = vars(Grade, LVI, PNI), fill = "first_variable" )
benford(data = histopathology, var = "TumorSize")
venn(data = histopathology, vars = vars(LVI, PNI, PreinvasiveComponent)) vartree( data = histopathology, vars = vars(Grade, LVI, PNI), percvar = "Grade", percvarLevel = "High" )
waterfall()
visualises tumor response over time.
waterfall( data = treatmentResponse, patientID = "PatientID", responseVar = "Response", timeVar = "Month", inputType = "percentage", showWaterfallPlot = TRUE, showSpiderPlot = TRUE )
These examples demonstrate the versatility of ClinicoPathDescriptives
for summarising and visualising clinicopathological data. Explore the help pages of each function for additional options and customisation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.