plotPlp | R Documentation |
Plot all the PatientLevelPrediction plots
plotPlp(plpResult, saveLocation = NULL, typeColumn = "evaluation")
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) |
Create a directory with all the plots
TRUE if it ran, plots are saved in the specified directory
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.