All Projects → JohnCoene → countup

JohnCoene / countup

Licence: other
⏱️ countup.js R htmlwidget

Programming Languages

r
7636 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to countup

R Course
Una introduccion al analisis de datos con R y R Studio
Stars: ✭ 93 (+158.33%)
Mutual labels:  rmarkdown
Knitr
A general-purpose tool for dynamic report generation in R
Stars: ✭ 2,134 (+5827.78%)
Mutual labels:  rmarkdown
Bookdown
Authoring Books and Technical Documents with R Markdown
Stars: ✭ 2,768 (+7588.89%)
Mutual labels:  rmarkdown
Conflr
Post R Markdown documents to Confluence
Stars: ✭ 96 (+166.67%)
Mutual labels:  rmarkdown
Liftr
🐳 Containerize R Markdown documents for continuous reproducibility
Stars: ✭ 155 (+330.56%)
Mutual labels:  rmarkdown
Cosx.org
统计之都主站
Stars: ✭ 180 (+400%)
Mutual labels:  rmarkdown
Wraprmd
RStudio addin for wrapping RMarkdown paragraphs
Stars: ✭ 87 (+141.67%)
Mutual labels:  rmarkdown
grillade
Grid sytem for shiny apps or rmarkdown and to create htmlwidgets matrix
Stars: ✭ 16 (-55.56%)
Mutual labels:  rmarkdown
Binb
Binb is not Beamer
Stars: ✭ 160 (+344.44%)
Mutual labels:  rmarkdown
Knitr Book
Dynamic Documents with R and knitr
Stars: ✭ 215 (+497.22%)
Mutual labels:  rmarkdown
Anicon
Animated icons for R markdown and Shiny apps
Stars: ✭ 109 (+202.78%)
Mutual labels:  rmarkdown
Bsplus
Shiny and R Markdown addons to Bootstrap 3
Stars: ✭ 120 (+233.33%)
Mutual labels:  rmarkdown
Bslib
Tools for theming shiny and rmarkdown from R via Bootstrap (3 or 4) Sass.
Stars: ✭ 197 (+447.22%)
Mutual labels:  rmarkdown
Blogdown
Create Blogs and Websites with R Markdown
Stars: ✭ 1,327 (+3586.11%)
Mutual labels:  rmarkdown
R4ds Exercise Solutions
Exercise solutions to "R for Data Science"
Stars: ✭ 226 (+527.78%)
Mutual labels:  rmarkdown
Rmd workshop
Materials for a workshop on writing reproducible research papers with R Markdown
Stars: ✭ 92 (+155.56%)
Mutual labels:  rmarkdown
Rmarkdown
Dynamic Documents for R
Stars: ✭ 2,319 (+6341.67%)
Mutual labels:  rmarkdown
reportmd
Create multi-page HTML reports in R
Stars: ✭ 23 (-36.11%)
Mutual labels:  rmarkdown
Xaringanextra
🎡 A playground of enhancements and extensions for xaringan slides.
Stars: ✭ 240 (+566.67%)
Mutual labels:  rmarkdown
Postcards
💌 Create simple, beautiful personal websites and landing pages using only R Markdown.
Stars: ✭ 208 (+477.78%)
Mutual labels:  rmarkdown

Travis build status

The underlying JavaScript libraries are CountUp.js, and Odometer.

Install

Install from Github with remotes:

# install.packages("remotes")
remotes::install_github("JohnCoene/countup")

News

Since version 0.1.1 the package also includes the odometer widget.

Examples

In the R console or R markdown.

library(countup)

countup(25)

opts = list(
  useEasing = TRUE, 
  useGrouping = TRUE, 
  separator = ',', 
  decimal = '.', 
  prefix = 'US$', 
  suffix = ' bejillion' 
)

countup(count = 1729, start = 10, options = opts)

In Shiny (since version 0.1.0), there are methods to programatically interact with the counter.

library(shiny)
library(countup)

ui <- fluidPage(
  h1(countupOutput("cnt")),
  actionButton("start", "start"),
  actionButton("pause", "pause / resume"),
  numericInput("value", "update to:", min = 1, max = 1000, value = 24)
)

server <- function(input, output, session) {

  output$cnt <- renderCountup({
    countup(1000, duration = 10, start = FALSE)
  })

  observeEvent(input$start, {
    countupProxy("cnt") %>% 
      countup_start()
  })

  observeEvent(input$value, {
    countupProxy("cnt") %>% 
      countup_update(input$value)
  })

  observeEvent(input$pause, {
    countupProxy("cnt") %>% 
      countup_pause_resume()
  })

}

shinyApp(ui, server)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].