Displaying 20 results from an estimated 9000 matches similar to: "gplot"
2008 Nov 25
1
row labels in heatmap.2(package gplots)
Dear R users,
I have a question regarding how to make row labels readable in a heat map.
I have successfully made a heat map using function "heatmap.2" in the package "gplots". However, as there are many rows in the heat map, I have difficulties labeling them (heatmap.2 provides a parameter "labRow" to label the row names, but as I have too many rows, I can not make
2012 Jan 28
1
gplot heatmap
Hi,
I am drawing a heat map using gplots of R package. The file (new4) is
having values 0 and 1 only.
library(gplots)
library(marray)
x=read.table("new4", header=TRUE)
mat=data.matrix(x)
heatmap.2(mat,
col=colorRampPalette(c("black","red"))(256),
#col=greenred(75),
Rowv=TRUE,
Colv=TRUE,
distfun = dist,
hclustfun = hclust,
dendrogram = c("row"),
scale =
2009 May 16
6
Modificando heatmaps
Hola a todos,
Estoy trabajando con la función heatmap.2() de la libreria ggplots. A
continuación encontrarán un ejemplo de la estructura de mis datos y el
código para generar el gráfico que me gustaría modificar:
# Datos
set.seed(123)
x <- matrix(rnorm(8*30), ncol = 8)
rownames(x) <- paste(''GM10A'',1:30,sep="")
colnames(x) <-
2010 Sep 18
1
Drawing Heatmap using gplots
Hi,
I am using heatmap.2 of gplots to make heatmaps of my the attached file. I
am giving my code for the same ..
library(gplots)
x=read.table("1.txt", header=TRUE)
mat=data.matrix(x)
heatmap.2(mat, col=greenred(75),
Rowv=TRUE,
Colv=TRUE,
distfun = dist,
hclustfun = hclust,
dendrogram = c("both"),
scale = c("row"),
na.rm=TRUE,
trace="none",
2012 Sep 09
3
how to save a heatmap.2 in png /jpeg /tiff
Hey, I am still working on my heat map (for those who are read my previous post about row.names)…
Now, I would like to save my heat map.2 in .png or .tiff in order being able to work on the picture in photoshop, but it doesn't work.
I'am using (as I have found on some forum)
> png("heatmap.2.png) # and it just doesn't work. when I try doing it with::
2008 Jun 24
3
heatmap and continuous variable
Dear All,
I want to plot a heat map with annotated columns. Both functions heatmap
(stats) and heatmap.2 (gplots) can plot a horizontal side bar that can
be used to visualize a categorical variable. In addition to a
categorical variable, I would like to visualize a continuous variable.
This could be done by small bars, a curve or simply numbers above the
columns. (The Sample names are already
2010 Jul 19
1
heatmap.2() yielding an inappropriate key?
Esteemed R-users,
heatmap.2() is yielding an inappropriate key based on my colors and
break-points.
In the reproducible example below, the key is inappropriate (to me) because-
1. 'Orange' is simply not represented in the key, despite its prescence
in the heatmap.
2. The proportions of the key are clearly out, ie., my largest bin, (0.1
- 0.2) is half the range, but this bin (colored
2012 Mar 18
1
problem saving gplot.hexbin using file save as pdf - "Error: invalid graphics state
I can save to png, TIFF and jpg but get an error "Error: invalid graphics
state" when trying to save as pdf and I have to restart R.
This happens when I add mtext lines.
There are a few other questions e.g. I want to move the mtext on side 1 to
the left, but that is the main issue for now.
I'm not using the ylab inside gplot.hexbin because it writes over the
numbers on the axis.
2014 Feb 24
3
Error gdata and gplots packages
Hi, I just installed Ubuntu 12.04.4. I installed R by following
instructions from CRAN after modification into my /etc/apt/sources.list file
sudo apt-get update
sudo apt-get install r-base
sudo apt-get install r-base-dev
When I try to load library(gdata) ou library(gplots), I have error
message :
library(gdata)
gdata: read.xls support for 'XLS' (Excel 97-2004) files
2004 Nov 09
1
gplot.hexbin - how to set figure margin.
Hi,
Would like to use to the hexbin package to plot a 2D hist - because it looks really _cool_.
My problem is related to drawing a pdf hexbin graphic in series of other graphics.
All other figures have a par(mar=c(3.2,3.2,1,1)). So the gplot.hexbin figure in this series looks a little alienated?
Was trying a to specify the _mar_ using par, viewport, hexViewport etc. a little.
My question. How
2007 Dec 28
2
gplot function - error
Hi all,
i installed the ggplot2 package via install.packages(), but the gplot function was not recognized in R console command. Is there any paths to configure? The error message reports that the function was not found.
Thanks
Ricardo
____________________________________________________________________________________
Be a better friend, newshound, and
2009 Jul 23
1
Another question on gplot
I am getting following strange error :
library(sn)
library(ggplot2)
dat1 <- as.matrix(rsn(1000, 0, 1, 0))[,1]
ggplot() + geom_histogram(aes(x = dat1, y = ..density.., fill = ..count..))
+
xlab("Distribution") + scale_y_continuous("")
Error: No data for layer
Can anyone please tell me why it is coming?
--
View this message in context:
2009 Aug 24
1
Saving heatmaps as PDFs
Hi,
I'm trying to save heatmaps as PDFs. However, the PDF version of the
heatmaps (Heatmap_CAFvsTNF_run2.pdf) is blurred when compared to its
counterpart, which was saved manually by using the software
"Grab" (Heatmap_CAFvsTNF_run2.tiff).
-----R code--------
sample_output <- "stroma_run2"
filename <-
2012 Jul 02
2
Heat Maps
Hello Everyone I am new to R
I have drawn indifference curves using the program below (Contour Plot)
u <- function(x, y) x^0.5 + y^0.5
x <- seq(0, 1000, by=1)
y <- seq(0, 1000, by=1)
a <- c(10, 20, 30)
contour(x, y, outer(x, y, u),levels=a,col="blue")
Now can any body please tell me how to draw Heat maps
and that too on the same indifference curve plot (contour)
2008 Nov 17
1
HELP ON SCALING GENE EXPRESSION DATA TO -1,0,1
Hello R-Community,
I am a rookie in R and I am fascinated with the power of bio computing
by R. I am analysing gene expression data from Real time PCR. I have
used absolute gene quantitation to measure gene copy number in all my
transcripts. All my data has been normalised them to a housekeeping
gene, which is constitutive expressed.
My problem is as follows.
After normalising some of the genes
2007 Jul 19
3
help with heatmap - how to remove annoying "X" before numeric values?
Hello All,
I have a simple question based on how things are labeled on my heat map;
particularly, there is this annoying "X" that appears before the numeric
value of all the labels of my columns.
Let's say I have the following silly data, stored in "temp.txt"
1905 1910 1950 1992 2011 2020
Gnat 0.08 0.29 0.29 0.37 0.39 0.43
Snake
2013 Dec 07
1
How to perform clustering without removing rows where NA is present in R
I have a data which contain some NA value in their elements.
What I want to do is to **perform clustering without removing rows**
where the NA is present.
I understand that `gower` distance measure in `daisy` allow such situation.
But why my code below doesn't work?
__BEGIN__
# plot heat map with dendogram together.
library("gplots")
library("cluster")
2007 Aug 24
2
problem loading package 'gplots'
Dear R community,
I am using R version 2.4.1 GUI 1.18 on an iBook G4 with OS 10.4.10.
When I try to load package 'gplots' I get the following message:
> library(gplots)
Loading required package: gdata
Attaching package: 'gdata'
The following object(s) are masked _by_ .GlobalEnv :
reorder.factor
Loading required package: gtools
Attaching package: 'gtools'
2010 Mar 25
1
Error in library(gplots) : there is no package called 'gplots'
Dear all,
I have an issue trying to install new packages (have tried with RODBC_1.3-1, gplots_2.6.1, gtools_2.7.4 packages) and get the same error message :
"Error in library(gplots) : there is no package called 'gplots'"
Only clue I have found so far on the Web is related to Perl (Perl modules are installed on my computer, but which one is related to gplots if any ?); no
2007 Feb 20
4
linux gplots install unhappy
Hello all,
I use R on both windows and a "mainframe" linux installation (RedHat
enterprise 3.0, which they tell me is soon to be upgraded to 4.0). On
windows I installed the package gplots without trouble, and it works fine.
When I attempted to do the same on the unix computer, the following error
message was forthcoming:
downloaded 216Kb
* Installing *source* package