Questions tagged [gplots]
Various R programming tools for plotting data
12
questions
31
votes
2answers
39k views
Moving color key in R heatmap.2 (function of gplots package)
I read the heatmap.2 help manual a couple of times now, and also in various online tutorials I didn't read about a way to move the color key to a different position.
Now, I am wondering if it is even ...
6
votes
2answers
7k views
How to color the branches and tick labels in the heatmap.2?
I have done a Heat Map using the function heatmap.2 of gplots in R, but I don't have an idea of how to coloring the branches and tick labels per groups (Eg. if I cut the tree to have four gruops like ...
1
vote
1answer
1k views
R: Weighted Joyplot/Ridgeplot/Density Plot?
I am trying to create a joyplot using the ggridges package (based on ggplot2). The general idea is that a joyplot creates nicely scaled stacked density plots. However, I cannot seem to produce one of ...
40
votes
3answers
36k views
How to set use ggplot2 to map a raster
I would like to make a plot using R studio similar to the one below (created in Arc Map)
I have tried the following code:
# data processing
library(ggplot2)
# spatial
library(raster)
library(...
0
votes
1answer
2k views
reduce width of columns on a heatmap.2 plot
I have a 331*9 double matrix (named expr001). It looks like this:
row.names Col1 Col2 Col3 Col4 Col5 Col6 Col7 Col8 Col9
17211382 7.397439 7.377975 7....
11
votes
4answers
37k views
Error while creating heatmaps - NA/NaN/Inf in foreign function call (arg 11)
I'm trying to prepare heatmap for my data but I have no idea why this error appears.
My data:
> dput(head(tbl_ready))
structure(c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.370330677123077,
0, 0, ...
4
votes
1answer
845 views
Make row labels italic in heatmap.2
I'm trying to make my row labels italic using the R function heatmap.2. There's no default option and I can't figure out a work around by setting par(font=3) for example. How can I set my row labels ...
2
votes
1answer
8k views
Error installing gplots
I am running R (v. 3.0.3) on OSX (v. 10.9.2).
When trying to install the 'gplots' package in R studio with the following command, I get an error:
> library("gplots")
Error in library("gplots") : ...
2
votes
2answers
6k views
Colour specific node in igraph
I am trying to colour node 6 and 7 regardless of whatever letter is selected from object 'd'.
g <- graph_from_literal(1:2:3:4:5 -- 6:7)
# Rename (sum up all the vertices)
d <- c("a", "b", "c", ...
1
vote
1answer
2k views
R gplots heatmap.2 - key is unstable using breaks parameter (warning: unsorted 'breaks' will be sorted before use)
I'm visualizing a data set with the heatmap.2 function from the gplots package in R. Basically I'm performing a hierarchical clustering analysis on the original data, while forcing the heatmap to ...
1
vote
1answer
126 views
R - plotting thumbnails (that are in a list) on a scatterplot
I'd like to plot a set of thumbnail images as points on a scatterplot. I've started with the answer code located here but they repeat the same thumbnail throughout the plot, whereas I have a list of ...
0
votes
0answers
585 views
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 ...