plotPlp {PatientLevelPrediction} | R Documentation |
Plot all the PatientLevelPrediction plots
Description
Plot all the PatientLevelPrediction plots
Usage
plotPlp(plpResult, saveLocation = NULL, typeColumn = "evaluation")
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
Value
TRUE if it ran, plots are saved in the specified directory
Examples
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)
[Package PatientLevelPrediction version 6.4.1 Index]