library(repvisforODK) library(readr) library(knitr)
# READ ME! # Please specify the parameters below as well as the indicated paramteres in the YAML header above # The csv path to your ODK data as string df = readr::read_csv("INSERT_CSV_PATH") # The column name of the date variable you want to examine as string date_col = "INSERT_DATE_COLUMN" # The targeted number of submissions perd day as integer or float daily_submission_goal = INSERT_DAILY_SUBMISSION_GOAL # only for submissions_timeseries_lineplot # Whether or not weekends shall be excluded as logical exclude_weekend = INSERT_BOOLEAN # If all the above parameters are specified, you should be able to go ahead and knit the table
fig <- repvisforODK::submission_goal_donut(df = df, daily_submission_goal = daily_submission_goal, date_col = date_col) fig
fig <- repvisforODK::submissions_timeseries_lineplot(df = df, daily_submission_goal = daily_submission_goal, date_col = date_col, exclude_weekend = exclude_weekend, cumulative = TRUE) fig
fig <- repvisforODK::submissions_timeseries_lineplot(df = df, daily_submission_goal = daily_submission_goal, date_col = date_col, exclude_weekend = exclude_weekend, cumulative = FALSE) fig
fig <- repvisforODK::heatmap_wday_hourofday(df = df, date_col = date_col) fig
fig <- repvisforODK::heatmap_calendar(df = df, daily_submission_goal = daily_submission_goal, date_col = date_col) fig
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.