Skip to content

Commit

Permalink
Add fix so that zero counts are displayed in weekly encounter graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Sheppard committed Oct 4, 2024
1 parent addb4c0 commit 4b98049
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions text_mining/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ valueBox(range, icon = "fa-calendar", color = "orange")

data %>%
count(date) %>%
complete(date = seq.Date(from = min(data$date), to = max(data$date), by = "1 week"), fill = list(n = 0)) %>%
plot_ly(
x = ~date,
y = ~n,
Expand Down
Binary file modified zip/text_mining.zip
Binary file not shown.

0 comments on commit 4b98049

Please sign in to comment.