show_leaderboard: Create the current leaderboard

Description Usage Arguments Value

View source: R/process_answers.R

Description

Create the current leaderboard

Usage

1
show_leaderboard(answers = NULL, n = NULL, quiz = getOption("peRson.quiz"))

Arguments

answers

Current list of evaluated answers. If NULL, taken from quiz environment.

n

Current question. If NULL, taken from the length of saved answers in quiz environment.

quiz

Quiz environment with quiz variables (uses answers, named_colors, presence)

Value

A plot with leaderboard is saved to "quiz/Ln.png".


martina-starc/peRson documentation built on April 14, 2021, 3:48 p.m.