Plot the adjacency (wins / matches) heatmap with rows/cols ordered by
the hard partition (fit$estimates$x_hat) and, within blocks,
by marginal wins. Draws block boundary lines and (optionally) a side color strip
for block IDs if ggside is installed.
Usage
plot_block_adjacency(
fit,
w_ij,
x_hat = NULL,
clean_fun = clean_players_names,
palette = NULL,
fill_low = "#FFFFCC",
fill_high = "#006400"
)Arguments
- fit
Output list from
gibbs_BT_SBM().- w_ij
Integer matrix of wins (same players & order used in
fit).- x_hat
partition point estimate. One n-length integer vector.
- clean_fun
Optional function to prettify player names. Default: identity.
- palette
Named colors for blocks (as character vector). Defaults to a Wimbledon-ish palette.
- fill_low, fill_high
Colors for the heatmap pixels gradient low/high.