问题
I`m making a cluster plot from my data. I have the entire plot finished but my label text is to large to be able to properly read the plot. Anyone any idea how to make labels smaller.
I am using the package "sparcl", and my function is:
ColorDendrogram(fit,y=col.int, main = "Clusters from 216 samples",
branchlength = 0.20, labels = fit$labels, xlab = NULL,
sub = NULL, ylab = "", cex.main = NULL)
as you can see the branch text is to big and they fall over each other. I want the text of the leaves to be 25% smaller. I already looked at the documentation of the Sparcl package but that doesn't seem to work.
回答1:
before calling the plot you should call par()
.
par(cex=numericvalue)
ColorDendrogram(parameters)
回答2:
Have you tried giving cex.main
a value?
(The amount by which to enlarge the main title for the figure)
来源:https://stackoverflow.com/questions/13046323/how-to-change-the-label-size-of-an-r-plot