ra_plot_score: Plot the distribution using a gauge plot

View source: R/ra_plot_score.R

ra_plot_scoreR Documentation

Plot the distribution using a gauge plot

Description

This function uses plotly to generate a gauge plot using a vector of numbers. Gauge plots provide a visual representation of a numeric magnitude

Usage

ra_plot_score(x, main = "", brks = NULL)

Arguments

x

vector of numbers

main

Main title for the figure

brks

breaks for the risk thresholds

Value

A plotly gauge figure

Examples

# use one of the example models
m <- quantrra::OIRSA

ra_run(m = m$nodes, nsim = 100) %>% # run the model
  pull(P) %>% # extract the final probability
  ra_plot_score() # plot the score as a gauge plot

jpablo91/QuantRRA documentation built on July 3, 2024, 10:46 p.m.