Determines panel widths and heights based on page dimensions, margin, and proportions.
compute_layout(
sorted_dat,
margin = 20,
total_w = 297,
total_h = 210,
tree_p = 0.3
)A list with:
Width for tree panel.
Width for heatmap panel.
Total drawable height after margin.
Height allocated to rows.
Height allocated to columns.
Height for tree panel (same as row_h).
Adjustment applied to ensure minimum column height.
Margin passed through.
List returned by sorted_mat(). Must contain sorted_test_matrix.
Numeric. Margin around the drawing area (mm).
Numeric. Total width of page (mm).
Numeric. Total height of page (mm).
Numeric. Proportion of total width allocated to the tree panel.