Learn R Programming

PatientLevelPrediction (version 3.0.0)

plotF1Measure: Plot the F1 measure efficiency frontier using the sparse thresholdSummary data frame

Description

Plot the F1 measure efficiency frontier using the sparse thresholdSummary data frame

Usage

plotF1Measure(evaluation, type = "test", fileName = NULL)

Arguments

evaluation

A prediction object as generated using the runPlp function.

type

options: 'train' or test'

fileName

Name of the file where the plot should be saved, for example 'plot.png'. See the function ggsave in the ggplot2 package for supported file formats.

Value

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

Details

Create a plot showing the F1 measure efficiency frontier using the sparse thresholdSummary data frame