How to adjust sizes of x-axis in dendrogram (R)? -
I would like to adjust the X-X in a denorder, where all the labels can be seen for large data sets. For example, I use iris data here:
& gt; Iris.data = subset (iris, select = - space) & gt; D & lt; - dist (iris.data, method = "euclidean") & gt; HC & lt; - HClLost (D, "Ward") & gt; After using the plot function, the dendrogram will be like this: Plot (HC, hang = -1, main = "dendrod of the method of ward", label = iris $ species) / P>
So, how are I going To accommodate X-X, all the species are clearly seen. Like: @ Roman Lua Trik said: You can do this:
png ("plotdendogram.png", width = 1600, height = 800) plot (cex = 1, font = 3) plot (hc, hang = -1, main = "dendrod method of ward", label = Iris $ species) dev.off () You will be able to see the names of the species, although in small font sizes Hope it helps.
Comments
Post a Comment