odometer: Odometer

Description Usage Arguments Examples

View source: R/odometer.R

Description

Create an odometer.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
odometer(
  count,
  duration = 2500,
  format = "(,ddd).dd",
  theme = c("default", "car", "digital", "minimal", "plaza", "slot-machine",
    "train-station"),
  width = NULL,
  height = NULL,
  elementId = NULL
)

Arguments

count

Value to count up to.

duration

Duration of countup.

format

Change how digit groups are formatted, and how many digits are shown after the decimal point.

theme

An odometer theme, see https://github.hubspot.com/odometer/api/themes/

width, height

Dimensions.

elementId

Id of element holding the odometer.

Examples

1
odometer(12345)

JohnCoene/countup documentation built on Aug. 24, 2020, 8:58 p.m.