library(lubridate) library(ggplot2)
# Get the number of content items created last week last_week <- df_full %>% filter(created_time >= today() - days(7)) # Get the number of content items created last month last_month <- df_full %>% filter(created_time >= today() - days(30))
r nrow(df_full)
content items on the serverr nrow(last_week)
content items have been created in the last seven daysr nrow(last_month)
content items have been created in the last thirty days# Bar plot of content items by type df_full %>% count(app_mode, sort = TRUE) %>% ggplot(aes(y = app_mode, x = n)) + geom_bar(stat = "identity") + theme_minimal() + labs(title = "Number of Content Items by Type", x = "Content Count", y = "Content Type")+ theme(plot.title.position = "plot")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.