Question: How to take out a column of a heat-map using R
1
gravatar for Vanceed
3.4 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 • 1.5k views
ADD COMMENTlink modified 3.4 years ago by Michael Dondrup46k • written 3.4 years ago by Vanceed30

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

ADD REPLYlink written 3.4 years ago by WouterDeCoster41k
2
gravatar for Michael Dondrup
3.4 years ago by
Bergen, Norway
Michael Dondrup46k 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 3.4 years ago • written 3.4 years ago by Michael Dondrup46k

Thanks so much Michael!

ADD REPLYlink written 3.4 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: 1979 users visited in the last hour