This is a test version of Biostars. For the public version, visit https://www.biostars.org.
scale in R pheatmap

Hi, I am having trouble understanding the scale() function in R. Anyone could explain it to me? Because my clusters change with scale option.

r

The option that i am using os scale="column" . This tranform my values?

yes, of course. you may try it row for clustering row-wise.

1 answer

scale function is used to transform the values. values are scaled using mean and standard deviation (link). While clustering, scaling is generally performed to obtain better cluster. clustering would change based on other parameters also such as distance method.

Log in to answer this question.