scale in R pheatmap
1
0
Entering edit mode
4.6 years ago
acfasantos • 0

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 • 3.2k views
ADD COMMENT
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY
1
Entering edit mode

In addition, take a look here: A: cannot replicate the pheatmap scale function

ADD REPLY
3
Entering edit mode
4.6 years ago
Prakash ★ 2.2k

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.

ADD COMMENT

Login before adding your answer.

Traffic: 1861 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6