plot_waterfall: Waterfall plot

plot_waterfallR Documentation

Waterfall plot

Description

Waterfall plot

Usage

plot_waterfall(
  risk.score,
  label,
  xlab = "Risk probability",
  palette = "jco",
  title = "",
  yticks.labl = c(0, 0.25, 0.5, 0.75, 1),
  sample = NA,
  rotate.x = 90
)

Arguments

xlab

Risk probability

yticks.labl

seq(0,1,by = 0.25) c(0,0.25,0.5,0.75,1)

sample

If you want to show sample label, provide a vector

rotate.x

Default 90. Rotate x axis text.

Examples

loonR::plot_waterfall(average.riskscore$Mean, average.riskscore$Label, xlab = "Risk probability")

ProfessionalFarmer/loonR documentation built on Oct. 9, 2024, 9:56 p.m.