Search code examples
rplotxlabs

Description of the x axis in R


I wrote a function in R to do hierarchical clustering.

Klasteryzacja_hierarchiczna = function(ExprSet,a,b,c,d) {
Klasteryzacja_h =exprs(ExprSet)'
clusters = hclust(dist(Klasteryzacja_h[a:b,c:d]))'
plot(clusters,xlab="Clusters")'
}

but it gave me this:

enter image description here Do you know how to get rid of hclust(*,"complete")?


Solution

  • You need to set the sub parameter.

    plot(clusters, xlab="Clusters", sub="")