View source: R/ra_plot_score.R
ra_plot_score | R Documentation |
This function uses plotly to generate a gauge plot using a vector of numbers. Gauge plots provide a visual representation of a numeric magnitude
ra_plot_score(x, main = "", brks = NULL)
x |
vector of numbers |
main |
Main title for the figure |
brks |
breaks for the risk thresholds |
A plotly gauge figure
# 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.