How hide some parent's label from plotly treemap?
how to hide "Seth" and "Awan"?
library(plotly)
fig <- plot_ly(
type="treemap",
labels=c("Eve", "Cain", "Seth", "Enos", "Noam", "Abel", "Awan", "Enoch", "Azura", "Marck"),
parents=c("", "Eve", "Eve", "Seth", "Seth", "Eve", "Eve", "Awan", "Eve", "Seth"))
fig
Im not sure if is the best response, but maybe could help you:
fig <- plot_ly(
type = "treemap",
labels = c("Eve", "Cain", "", "Enos", "Noam", "Abel", "", "Enoch", "Azura", "Marck"),
parents = c("", "Eve", "Eve", "", "", "Eve", "Eve", "", "Eve", ""))
fig
Seth title underneath 3 tiles so seth is considered as container.
i wanna keep this way and hide the word Seth.
can we group some tiles such as block (Cain, Abel, and Azura)