View source: R/plot_intervals.R
plot_intervals | R Documentation |
Plot intervals from a data frame of interval bounds.
plot_intervals(df_interval_bounds, item_labels = NULL)
df_interval_bounds |
A data frame with two columns: the lower and upper bounds of the intervals. |
item_labels |
An optional vector of labels for the items. Its length
must match the number of rows in |
A ggplot object depicting the intervals.
df <- data.frame(lower = c(0.1, 0.3, 0.5), upper = c(0.4, 0.6, 0.8))
labels <- c("Item 1", "Item 2", "Item 3")
plot_intervals(df, item_labels = labels)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.