Open ChristelSwift opened 5 years ago
when i run this code:
library(plotly) set.seed(3) N <- 50 df <- data.frame(x = rnorm(N), y = rnorm(N)) rownames(df) <- paste0("p_", 1:N) dend <- as.dendrogram(hclust(dist(df))) plot_dendro(dend)
i end up with the dendrogram all squashed to the right:
Any idea how i can force it to fill in the entire graph viewer?
Huh, weird, you can set the range manually this way: plot_dendro(dend) %>% layout(xaxis = list(range = c(-1, 5)))
plot_dendro(dend) %>% layout(xaxis = list(range = c(-1, 5)))
yep, that worked! thanks very much :)
when i run this code:
i end up with the dendrogram all squashed to the right:
Any idea how i can force it to fill in the entire graph viewer?