Question: How to take out a column of a heat-map using R
1
gravatar for Vanceed
4.3 years ago by
Vanceed30
United States
Vanceed30 wrote:

This might seem like a very basic programming question but I generated a heat map using R but need to remove a column and have 2 columns instead of 3. What is the code to do so? Thanks so much.

programming coding heat-map R • 2.0k views
ADD COMMENTlink modified 4.3 years ago by Michael Dondrup47k • written 4.3 years ago by Vanceed30

Could provide some sample code with which you generated the heatmap?

ADD REPLYlink written 4.3 years ago by WouterDeCoster44k
2
gravatar for Michael Dondrup
4.3 years ago by
Bergen, Norway
Michael Dondrup47k wrote:

Say your matrix is called x and you are using heat.map as a function and you want to remove the second column:

heat.map(x[,-2]) # removes 2. col from matrix x
ADD COMMENTlink modified 4.3 years ago • written 4.3 years ago by Michael Dondrup47k

Thanks so much Michael!

ADD REPLYlink written 4.3 years ago by Vanceed30
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1532 users visited in the last hour