FAQ Database Discussion Community


R: Changing the size of a heatmap.2 rowname column

r,heatmap,gplots
I used the following code: library("gplots") heatmap.2(assay(vsd)[ens_union,], trace = "none", density.info = "none") To produce the following heatmap: As you can see, the row labels have been cut-off (the first one should, for instance, be ENSMUSG00000000088, but only ENSMUSG0 is displayed). How can I re-size the plot to include the...

Suppressing error message from heatmap.2 in knitr/Rmarkdown

r,heatmap,gplots
I am trying to generate a plot using heatmap.2 and print to a pdf_document using Rmarkdown. Whether I call heatmap.2 from the console or in an .Rmd, the plot appears perfectly exactly as I want it. But additionally, I receive the error message: ## Error in plot.new(): figure margins too...

How to add a sample vertical line to in a gplot?

r,graph,ggplot2,normal-distribution,gplots
Consider the graph below given by this code: require(ggplot2) my_data<-c(70, 71, 75, 78, 78, 79, 80, 81, 84, 85, 87, 87, 90, 91, 95, 95, 96, 96, 97, 98, 98, 100, 101, 102, 102, 102, 102, 104, 104, 104, 107, 107, 109, 110, 110, 110, 111, 112, 113, 113, 114,...