You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 satır
423B

  1. ---
  2. output: js4shiny::html_document_plain
  3. ---
  4. ```{r frappeChart}
  5. library(dplyr)
  6. library(tidyr)
  7. library(babynames)
  8. data <-
  9. babynames %>%
  10. filter(
  11. name %in% c("Ruth", "August"),
  12. year >= 1980
  13. ) %>%
  14. group_by(year, name) %>%
  15. summarize(n = sum(n)) %>%
  16. ungroup() %>%
  17. pivot_wider(year, name, values_from = n)
  18. frappeCharts::frappeChart(data, title = "This. Is. Awwesome.", elementId = "name-chart")
  19. ```