Questions tagged [gplots]

Various R programming tools for plotting data

gplots: Various R programming tools for plotting data

164 questions
0
votes
1 answer

R Heatmap: Hide cellnote for cell value = 0

I have a working heatmap, built with gplots, as shown here: heatmap.2(as.matrix(matrix1),cellnote=as.matrix(matrix1), notecol="black",margins =c(9,6),trace="none",density.info="none", …
mr_bungles
  • 77
  • 1
  • 11
0
votes
1 answer

Colour zero values in heatmap.2()

I am using gplots and Rcolorbrewer to make a heatmap using the heatmap2() function. My data has zeros denoting that no data is recorded in this samples. To create the heatmap, I want these zeros to be coloured white and the rest above in a three…
Epilotus
  • 31
  • 2
  • 7
0
votes
1 answer

R: heatmap.2 doesn't generate symmetrical plot even I set symm=T

I have matrix with the same rownames and colnames:Matrix Then I use heatmap.2 to plot it symmetrically: heatmap.2(matrix, Rowv=T, scale='none', dendrogram="row", symm =T, col = brewer.pal(9,"Reds")) But I got the image as below: It is not…
0
votes
1 answer

How to shift the rowlabels from right to left in heatmap2 in R?

So I want to shift the rowlabels appearing on the right to left.
Aradhya Kasat
  • 221
  • 1
  • 11
0
votes
1 answer

Null output when printing heatmap.2 object in rmarkdown

I'm using rmarkdown via R-Studio and want to plot a heatmap by the heatmap.2. When I change the angle of column labels via the strCol option I get a NULL message printed before the heatmap in the output PDF file. Attached a minimal code reproduce…
itamar kanter
  • 1,170
  • 3
  • 10
  • 25
0
votes
2 answers

How can I extract the matrix derived from a heatmap created with gplots after hierarchical clustering?

I am making a heatmap, but I can't assign the result in a variable to check the result before plotting. Rstudio plot it automatically. I would like to get the list of rownames in the order of the heatmap. I'am not sure if this is possible. I'am…
Tiago Bruno
  • 413
  • 1
  • 3
  • 17
0
votes
0 answers

heatmap.2 function from gplots in R shows histogram key, heatmap and dendogram separately

I am trying to plot a heat map with the function heatmap.2 from gplots library in R. The main problem is it generates three independent plots separately, whilst it previously worked well. It seems as if something in the library had changed, but I've…
Peter Pfand
  • 155
  • 1
  • 1
  • 7
0
votes
1 answer

Why does the barplot2 only color 3/4 bars in R?

I'm trying to make a barplot2 of a dataset (which is too long to upload) with 4 different colors. The problem is, only 3/4 are colored it skips the first bar. I've searched on Google to check whether I've written it correct or not, but it should be…
Mr.T
  • 27
  • 7
0
votes
0 answers

Unable to access index for repository http://mirrors.dotsrc.org/cran/src/contrib

I have tried to install the package gplots in R using > install.packages("gplots") However, it returns a warning and an error Advarsel: unable to access index for repository http://mirrors.dotsrc.org/cran/src/contrib Advarsel: unable to access…
lbl
  • 31
  • 2
0
votes
0 answers

How to adjust multiple variables into one graph in R?

I'm kind of new to R and been facing problems with adjusting data values into a graph which I made using ggplot2. Here is the code which I am using for generating the plot. sample.data <- read.csv(file = file.choose()) sample.data1 <- read.csv(file…
0
votes
1 answer

package ‘gplots’ is not available for R version 3.0.2

I was using ubuntu 14.04.2 LTS. My R version was 3.0.2. When I used the following command to install package "gplots" sudo -i R install.packages("gplots") I got a warning message: package ‘gplots’ is not available (for R version 3.0.2.) Any…
beesuns
  • 21
  • 1
  • 7
0
votes
0 answers

Making a heatmap in R varying both color and transparency

Is it possible to generate a heatmap taking into consideration both the color and the transparency, with these two parameters given from two different matrices (matrix 1 defines color, matrix 2 defines alpha)? A little more information on what I'm…
0
votes
1 answer

Plot 4 confidence intervals with barplot2 (gplots)

I want to compare 4 confidence intervals. I have an example for doing it with 2 intervals, but cannot make it work with 4 side by side. Here is the working script for 2 intervals. The VMP0$LOAD is my data. CIA <- t.test(VMP0$NLoad)$conf.int CIB…
AugustM
  • 87
  • 1
  • 10
0
votes
2 answers

passing a character generated using paste() to mtext()

I want to trying to wtire a function that will generate heatmaps by calling heatmap.2. Among other things, I want to generate the title of the plots by calling add.expr, for example: add.expr=c(mtext(text=titlestring, side=3, line=4, cex=1) With…
user1614062
  • 182
  • 2
  • 13
0
votes
1 answer

Merging two plots into one, each with a separate legend using R

I'm have made two separate scatter plots using ggplot2 and I need to combine them into one single plot. Each plot is for a population of lizards under three different treatments (backgrounds). for each plot I have the following: csMS =…
1 2 3
10
11