Skip to contents

The drawing half of the evaluation graph; eval_graph_geometry() does the arithmetic. This lives in the app layer rather than beside the tracker because it is the one place a UI toolkit is needed, and the core is kept free of one - see test-core-boundary.R.

Usage

eval_graph_svg(cp, click_input = NULL, width = 420, height = 110)

Arguments

cp

Centipawn evaluations from White's point of view, one per position (so one more than the number of moves). NA where not yet measured.

click_input

Namespaced Shiny input id to report clicks to, or NULL for a static graph. Each point reports its own index as ply, counting the moves played to reach it - so 0 is the opening position, and every other value names the move that arrived there.

width, height

Pixel size of the graph.

Value

A shiny::tags$svg element, or NULL if there is nothing to draw.