Learn R Programming

PatientLevelPrediction (version 6.4.1)

plotPlp: Plot all the PatientLevelPrediction plots

Description

Plot all the PatientLevelPrediction plots

Usage

plotPlp(plpResult, saveLocation = NULL, typeColumn = "evaluation")

Value

TRUE if it ran, plots are saved in the specified directory

Arguments

plpResult

Object returned by the runPlp() function

saveLocation

Name of the directory where the plots should be saved (NULL means no saving)

typeColumn

The name of the column specifying the evaluation type (to stratify the plots)

Details

Create a directory with all the plots

Examples

Run this code
  # takes too long 
data("simulationProfile")
plpData <- simulatePlpData(simulationProfile, n=1000)
saveLoc <- file.path(tempdir(), "plotPlp")
results <- runPlp(plpData, outcomeId = 3, saveDirectory = saveLoc)
plotPlp(results)
# clean up
unlink(saveLoc, recursive = TRUE)

Run the code above in your browser using DataLab