plot.kpi: Plot KPI objects

View source: R/plot.R

plot.kpiR Documentation

Plot KPI objects

Description

Plot KPI objects

Usage

## S3 method for class 'kpi'
plot(x, y = 1, col = "#E6002EFF", pch = 21, ...)

Arguments

x

result from kpi

y

ignored

col

colour for points

pch

point character

...

for possible future expansion

Value

list of ggplot objects

Examples

# 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")


CTU-Bern/kpitools documentation built on Aug. 19, 2024, 4:58 a.m.