This function generates visual immediate feedback tests based on the data retrieved by tbl_fetch_immediate_feedback_test_data (the same function is used internally by the immediate feedback test apps).

tbl_generate_immediate_feedback_test(
  immediate_feedback_test_data,
  correct = "#4DAF4A",
  incorrect = "#E41A1C",
  unknown = "#999999",
  width = 0.9,
  height = 0.9
)

Arguments

immediate_feedback_test_data

the immediate feedback test data frame retrieved by tbl_fetch_immediate_feedback_test_data

correct

the color for correct answers (green by default)

incorrect

the color for incorrect answers (red by default)

unknown

the color for yet unknown answers (gray by default)

width

the relative width of the option boxes (from 0 to 1)

height

the relative height of the optin boxes (from 0 to 1)