plotGeneralizability: Plot the train/test generalizability diagnostic

View source: R/Plotting.R

plotGeneralizabilityR Documentation

Plot the train/test generalizability diagnostic

Description

Plot the train/test generalizability diagnostic

Usage

plotGeneralizability(
  covariateSummary,
  saveLocation = NULL,
  fileName = "Generalizability.png"
)

Arguments

covariateSummary

A prediction object as generated using the runPlp function.

saveLocation

Directory to save plot (if NULL plot is not saved)

fileName

Name of the file to save to plot, for example 'plot.png'. See the function ggsave in the ggplot2 package for supported file formats.

Details

Create a plot showing the train/test generalizability diagnostic #'

Value

A ggplot object. Use the ggsave function to save to file in a different format.


OHDSI/PatientLevelPrediction documentation built on Sept. 15, 2024, 6:38 a.m.