Is it possible to run seaborn.clustermap on a previously obtained ClusterGrid
object?
For example I user clustermap to obtain g in the following example:
import seaborn as ns
data = sns.load_dataset("iris")
species = iris.pop("species")
g = sns.clustermap(
data,
cmap="mako",
col_cluster=False,
yticklabels=False, figsize=(5, 10),
method='ward',
metric="euclidean"
)
I would like to try different visualization options like different colormaps, figure sizes, how it looks with and without labels etc.
With the iris
dataset everything is really fast, but I have a way larger dataset and the clustering part takes a lot of time.
Can I use g
to show the heatmap and dendrogram using different options?