Creates a heatmap of the (calibrated) consensus matrix. See examples in
Clustering
.
# S3 method for clustering
plot(
x,
linkage = "complete",
argmax_id = NULL,
theta = NULL,
theta_star = NULL,
col = c("ivory", "navajowhite", "tomato", "darkred"),
lines = TRUE,
col.lines = c("blue"),
lwd.lines = 2,
tick = TRUE,
axes = TRUE,
col.axis = NULL,
cex.axis = 1,
xlas = 2,
ylas = 2,
bty = "n",
...
)
A heatmap.
output of Clustering
.
character string indicating the type of linkage used in
hierarchical clustering to define the stable clusters. Possible values
include "complete"
, "single"
and "average"
(see
argument "method"
in hclust
for a full list).
optional indices of hyper-parameters. If
argmax_id=NULL
, the calibrated hyper-parameters are used.
optional vector of cluster membership. If provided, the ordering
of the items should be the same as in Clusters
. This argument
is used to re-order the consensus matrix.
optional vector of true cluster membership. If provided,
the ordering of the items should be the same as in Clusters
.
This argument is used to define item colours.
vector of colours.
logical indicating if lines separating the clusters provided in
theta
should be displayed.
colour of the lines separating the clusters.
width of the lines separating the clusters.
logical indicating if axis tickmarks should be displayed.
logical indicating if item labels should be displayed.
optional vector of cluster colours.
font size for axes.
orientation of labels on the x-axis, as las
in
par
.
orientation of labels on the y-axis, as las
in
par
.
character string indicating if the box around the plot should be
drawn. Possible values include: "o"
(default, the box is drawn), or
"n"
(no box).
additional arguments passed to Heatmap
.