library(reactable) library(DBI) library(tidyverse) library(shiny) source("R/inter_rate_metrics.R") knitr::opts_chunk$set(echo = FALSE, warning = FALSE, message = FALSE ) con <- dbConnect(RSQLite::SQLite(), "db/db.db") evaluation <- get_evaluations(con)
renderPlot({ plot_results(evaluation, filter_answered_by_all = TRUE, simplify_answer_probably = TRUE) })
renderPlot({ plot_results(evaluation,filter_answered_by_all = FALSE, simplify_answer_probably = TRUE ) })
renderPlot({ plot_results(evaluation, filter_answered_by_all = TRUE, simplify_answer_probably = FALSE) })
renderPlot({ plot_results(evaluation,filter_answered_by_all = FALSE, simplify_answer_probably = FALSE ) })
results_no_truncate_no_removal <- calculate_all(evaluation = evaluation, truncate_probably = FALSE, remove_unknown = FALSE) renderPlot( plot_agreement(results_no_truncate_no_removal), height = 800 ) renderReactable( results_no_truncate_no_removal %>% select( users = name, metric, value, p_value ) %>% reactable( pagination = FALSE, defaultColDef = colDef( format = colFormat( digits = 2 ) ) ) )
results_no_truncate_removal <- calculate_all(evaluation = evaluation, truncate_probably = FALSE, remove_unknown = TRUE) renderPlot( plot_agreement(results_no_truncate_removal), height = 800 ) renderReactable( results_no_truncate_removal %>% select( users = name, metric, value, p_value ) %>% reactable( pagination = FALSE, defaultColDef = colDef( format = colFormat( digits = 2 ) ) ) )
results_truncate_no_removal <- calculate_all(evaluation = evaluation, truncate_probably = TRUE, remove_unknown = FALSE) renderPlot( plot_agreement(results_truncate_no_removal), height = 800 ) renderReactable( results_truncate_no_removal %>% select( users = name, metric, value, p_value ) %>% reactable( pagination = FALSE, defaultColDef = colDef( format = colFormat( digits = 2 ) ) ) )
results_truncate_removal <- calculate_all(evaluation = evaluation, truncate_probably = TRUE, remove_unknown = TRUE) renderPlot( plot_agreement(results_truncate_removal), height = 800 ) renderReactable( results_truncate_removal %>% select( users = name, metric, value, p_value ) %>% reactable( pagination = FALSE, defaultColDef = colDef( format = colFormat( digits = 2 ) ) ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.