plot.kpi | R Documentation |
Plot KPI objects
## S3 method for class 'kpi'
plot(x, y = 1, col = "#E6002EFF", pch = 21, ...)
x |
result from kpi |
y |
ignored |
col |
colour for points |
pch |
point character |
... |
for possible future expansion |
list of ggplot objects
# defaults
kpi <- mtcars %>%
kpi("mpg", by = c("am", "vs"), txt = "MPG")
plot(kpi)
# customizing the plots
plots <- plot(kpi)
plots$am +
theme_bw() +
labs(title = "Foo")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.