AdaptiveTestPlots.jl

This is a package for plotting recordings of CATs (Computerised Adaptive Tests).

Index

API

AdaptiveTestPlots.AdaptiveTestPlotsModule

This module contains helpers for creating CAT/IRT related plots. This module requires the optional depedencies AlgebraOfGraphics, DataFrames and Makie to be installed.

source
AdaptiveTestPlots.LabelledToggleGridType

AdaptiveTestPlots.LabelledToggleGrid <: Block

No docstring defined.

Attributes

(type ?AdaptiveTestPlots.LabelledToggleGrid.x in the REPL for more information about attribute x)

alignmode, halign, height, tellheight, tellwidth, valign, width

source
AdaptiveTestPlots.MenuGridType

AdaptiveTestPlots.MenuGrid <: Block

No docstring defined.

Attributes

(type ?AdaptiveTestPlots.MenuGrid.x in the REPL for more information about attribute x)

alignmode, halign, height, tellheight, tellwidth, valign, width

source
AdaptiveTestPlots.ViolinSeqType

ViolinSeq is the plot type associated with plotting function violinseq. Check the docstring for violinseq for further information.

source
AdaptiveTestPlots.as_observableMethod
as_observable(
    x::Observables.Observable
) -> Observables.Observable

Return x as an Observable, wrapping it if it is not one already.

lift (which is Observables.map) only dispatches on an observable first argument; a plain value in that position falls back to Base.map and fails.

source
AdaptiveTestPlots.plot_item_bankMethod
plot_item_bank(
    item_bank::FittedItemBanks.AbstractItemBank;
    fig,
    items,
    labeller,
    zero_symmetric,
    include_outcome_toggles,
    item_selection,
    include_legend
) -> Makie.Figure

Plot an item bank item_bank with items items using the labeller labeller to label the items.

Lines are drawn for each item and each outcome. The domain of the item bank is used to determine the x-axis limits. You can use zero_symmetric to force the domain to be symmetric about zero.

If include_outcome_toggles is true, then a toggle grid is drawn to show/hide the outcomes. If item_selection is :toggles, then a toggle grid is drawn to show/hide the items, for :menu a menu is used allowing a single item to be choseshowenn.

source
AdaptiveTestPlots.plot_item_bank_comparisonMethod
plot_item_bank_comparison(
    item_banks::AbstractVector;
    items,
    labeller,
    include_outcome_toggles,
    include_item_toggles,
    ignore_domain_indices,
    lims,
    grid_points,
    plot_item_response_cb,
    size
) -> Makie.Figure

Plot a comparison of multiple item banks item_banks. For an explanation of the options, see: plot_item_bank.

source
AdaptiveTestPlots.plot_likelihoodsFunction
plot_likelihoods(
    estimators,
    tracked_responses,
    integrator,
    xs;
    ...
) -> Makie.Figure
plot_likelihoods(
    estimators,
    tracked_responses,
    integrator,
    xs,
    lim_lo;
    ...
) -> Makie.Figure
plot_likelihoods(
    estimators,
    tracked_responses,
    integrator,
    xs,
    lim_lo,
    lim_hi;
    fig
) -> Makie.Figure
source
AdaptiveTestPlots.violinseqFunction
violin_seq(steps, xs, all_ys)

Draw a violin plot from precomputed likelihoods at different steps.

Arguments

  • steps: positions of the step at which the likelihood applies (categories)
  • xs: points at which the likelihood was evaluated
  • all_ys: precomputed likelihoods at different steps

Plot type

The plot type alias for the violinseq function is ViolinSeq.

Attributes

clip_planes = @inherit clip_planes automatic — Clip planes offer a way to do clipping in 3D space. You can set a Vector of up to 8 Plane3f planes here, behind which plots will be clipped (i.e. become invisible). By default clip planes are inherited from the parent plot or scene. You can remove parent clip_planes by passing Plane3f[].

color = @inherit patchcolorNo docs available.

datalimits = (-Inf, Inf) — Specify values to trim the violin. Can be a Tuple or a Function (e.g. datalimits=extrema).

depth_shift = 0.0 — Adjusts the depth value of a plot after all other transformations, i.e. in clip space, where -1 <= depth <= 1. This only applies to GLMakie and WGLMakie and can be used to adjust render order (like a tunable overdraw).

dodge = automaticNo docs available.

dodge_gap = 0.03No docs available.

fxaa = true — Adjusts whether the plot is rendered with fxaa (fast approximate anti-aliasing, GLMakie only). Note that some plots implement a better native anti-aliasing solution (scatter, text, lines). For them fxaa = true generally lowers quality. Plots that show smoothly interpolated data (e.g. image, surface) may also degrade in quality as fxaa = true can cause blurring.

gap = 0.2 — Shrinking factor, width -> width * (1 - gap).

inspectable = @inherit inspectable — Sets whether this plot should be seen by DataInspector. The default depends on the theme of the parent scene.

inspector_clear = automatic — Sets a callback function (inspector, plot) -> ... for cleaning up custom indicators in DataInspector.

inspector_hover = automatic — Sets a callback function (inspector, plot, index) -> ... which replaces the default show_data methods.

inspector_label = automatic — Sets a callback function (plot, index, position) -> string which replaces the default label generated by DataInspector.

max_density = automaticNo docs available.

model = automatic — Sets a model matrix for the plot. This overrides adjustments made with translate!, rotate! and scale!.

n_dodge = automaticNo docs available.

orientation = :vertical — Orientation of the violins (:vertical or :horizontal)

overdraw = false — Controls if the plot will draw over other plots. This specifically means ignoring depth checks in GL backends

scale = :area — Scale density by area (:area) or width (:width).

space = :data — Sets the transformation space for box encompassing the plot. See Makie.spaces() for possible inputs.

ssao = false — Adjusts whether the plot is rendered with ssao (screen space ambient occlusion). Note that this only makes sense in 3D plots and is only applicable with fxaa = true.

strokecolor = @inherit patchstrokecolorNo docs available.

strokewidth = @inherit patchstrokewidthNo docs available.

transformation = :automatic — Controls the inheritance or directly sets the transformations of a plot. Transformations include the transform function and model matrix as generated by translate!(...), scale!(...) and rotate!(...). They can be set directly by passing a Transformation() object or inherited from the parent plot or scene. Inheritance options include:

  • :automatic: Inherit transformations if the parent and child space is compatible
  • :inherit: Inherit transformations
  • :inherit_model: Inherit only model transformations
  • :inherit_transform_func: Inherit only the transform function
  • :nothing: Inherit neither, fully disconnecting the child's transformations from the parent

Another option is to pass arguments to the transform!() function which then get applied to the plot. For example transformation = (:xz, 1.0) which rotates the xy plane to the xz plane and translates by 1.0. For this inheritance defaults to :automatic but can also be set through e.g. (:nothing, (:xz, 1.0)).

transparency = false — Adjusts how the plot deals with transparency. In GLMakie transparency = true results in using Order Independent Transparency.

visible = true — Controls whether the plot gets rendered or not.

width = automatic — Width of the box before shrinking.

source
AdaptiveTestPlots.violinseq!Function

violinseq! is the mutating variant of plotting function violinseq. Check the docstring for violinseq for further information.

source