## Plot the Map Exchangeability of a Basket Trial

### Description

The Maximum A Posteriori Probability (MAP) of an MEM is the estimate of the exchangeability structure of a basket trial. This function visualizes this matrix as an exchangeogram.

plot_map(x, ...)

### Arguments

 x basket element of the exchangeability model. ... other options passed to ggplot2 to alter the visual

### Details

The plot_map function attempts to place the basket names to the left of the main diagonal in a way that makes it easy to read. However, for especially long basket names options are provided. Here is a list of all options available to “fine tune” the visualizations. These auxiliary options include:

• [palette]A color palette consisting of 3 colors: the first corresponds to a low degree of exchangeability, the second to 50 exchangeability, and the third to a high degree of exchangeability. Interpolation between these colors is performed for intermediary degrees of exchangeability.

• [text_color]A text string setting the color of the exchangeability values printed on the plot. (Default "white")

• [tile_color]A text string setting the color of the edges of the tiles. (Default "white")

• [expand] The proportion to expand the viewport (Default expand = c(0.3, 0.3))

• [text_size] The text size. (Default 4)

• [legend_position] The legend position. (Default legend_position = c(0.25, 0.8)

• [draw_legend] Should the legend be drawn? (Default TRUE)

vemu_wide$responders, vemu_wide$evaluable,
vemu_wide$baskets ) plot_map(mem_analysis$basket)