The simple example
library(heatmaply)
heatmaply(mtcars, k_col = 2, k_row = 3) %>% layout(margin = list(l = 130, b = 40))
and we get this plot
We see that the observations were divided on 3 clusters
1 from honda civic to ferrari dino
2 from valiant to dodge challendger
3 from chrysler imperial to maserati bora
Also we see that technical parameters(variables) were divided by two classes
The first class **hp** and **disp**
The second class another parameters
how can I output in dataframe the name(or number) of those observations that, on the one hand, they in the first cluster (cars of the first cluster), and they are located at the area of the first cluster of technical variables. In other words, I identified this area on screen below
Accordingly, the output must be made for observations of all clusters of cars in different clusters of technical variables. It is easy to calculate that it will be 6 areas.