Draws the Gantt of a mapped course: one row per course objective, one bar per session that addresses it, laid out along the term. Where a Sankey says how much of each objective is served and by what, this says when – an objective met only in week 1, one taught in three separated bursts, and one carried evenly across the term have the same ribbon and different bars.
Arguments
- x
CurriculumMappingobject, frommap_curriculum().- threshold
Numeric
[0, 1]: Minimumstrengthfor a session to count as addressing an objective.NULLuses the threshold the run was made with.- group
Character: Column of
as_gantt()to color bars by, orNULLfor one color."band", the default, carries the strength of the support: the rows already name the objectives, so a legend keyed by objective repeats them at length while saying nothing the y-axis does not."label"colors by objective in the huessankey_palette()uses, for a figure meant to be read beside a Sankey;"label_band"carries both, at the cost of a legend entry per objective per band."alignment"colors by the scoring system's own label,"covered"reduces it to met/unmet.- node_labels
Character {"text", "id"}: What to label rows with.
- palette
Character: Bar colors, in the order the groups appear.
NULLbuilds them from the same huessankey_palette()gives the criteria, so an objective is one color across every figure of a run, with the uncovered marker outside the ramp in red.- title
Character: Chart title.
NULLbuilds one from the course name and term.- card
Character {"bottomleft", "bottomright", "topleft", "topright", "none"}: Corner for a small card naming the scoring system, what one rating means and where the alignment threshold was drawn.
"none"omits it.- filename
Character: Path to write the drawing to, or
NULLto return it without writing. The extension picks the format;.svgis supported.- width
Numeric: Figure width in pixels, used when writing.
- height
Numeric: Figure height in pixels, used when writing.
- verbosity
Integer
[0, Inf): Verbosity level.- ...
Additional arguments passed to
rtemis.draw::draw_gantt(), e.g.palette,theme,bar_height.
Details
The run's own threshold is used unless another is given, so the picture
agrees with the verdict print() and report_curriculum() report. A course
objective no session reaches keeps its row, marked: a row that vanishes is
the finding a reader most needs.
Requires the rtemis.draw package, and filename additionally requires a
node binary on the PATH – SVG is rendered server-side, which is what
turns an interactive widget into a figure.
Examples
if (FALSE) { # \dontrun{
cm <- map_curriculum(course, llmconfig = llmconfig)
plot_gantt(cm)
plot_gantt(cm, threshold = 0.6, filename = "epi207_gantt.svg")
} # }