v_progress | R Documentation |
Create a Progress Chart
v_progress(
vc,
mapping = NULL,
data = NULL,
name = NULL,
...,
serie_id = NULL,
data_id = NULL
)
vc |
A chart initialized with |
mapping |
Default list of aesthetic mappings to use for chart. |
data |
Default dataset to use for chart. If not already
a |
name |
Name for the serie, only used for single serie (no |
... |
Additional parameters for the serie. |
data_id , serie_id |
ID for the data/serie, can be used to further customize the chart with |
A vchart()
htmlwidget
object.
library(vchartr)
vchart() %>%
v_progress(aes(0.85, "My progress"))
data.frame(
x = c(0.4, 0.3, 0.8, 0.6),
y = paste("Course", 1:4)
) %>%
vchart() %>%
v_progress(
aes(x, y),
cornerRadius = 20,
bandWidth = 30
) %>%
v_scale_y_discrete(
label = list(visible = TRUE),
domainLine = list(visible = FALSE)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.