Learn R Programming

TeachBayes (version 0.1.0)

spinner_plot: Constructs a spinner

Description

Constructs a spinner with different regions

Usage

spinner_plot(probs, ...)

Arguments

probs
vector of probabilities for the spins 1, 2, ...
...
optional vector of values and title

Value

A ggplot2 object containing the spinner display

Examples

Run this code
  spinner_plot(rep(.2, 5),
         values=c("A", "B", "C", "D", "E"),
         title="My Spinner")

Run the code above in your browser using DataLab