Displaying 20 results from an estimated 30000 matches similar to: "heatmap"
2012 Jul 23
2
image function
Dear all,
I have a question regarding changing the xlim and ylim in the function
image().
For example, in the following code, how can I have a heatmap with
xlim=ylim=c(0, 100)
instead of (0,1).
Thank you very much.
x <- matrix(rnorm(10000, 0,1), 100, 100)
image(x)
Hannah
[[alternative HTML version deleted]]
2006 Feb 22
4
heatmap.2 in gplots package
Hello all,
I am using the heatmap.2 function in the gplots package. I want to supress the reordering of the columns of the data matrix i pass to the function. I used the statement,
heatmap.2(z,Colv=FALSE,dendrogram="row",col=redgreen(75))
where z, is the matrix of data. The output i want should have the rows reordered along with the dendrogram and the columns should be in the original
2008 Sep 22
1
SmoothScatter plot range issue
Hello,
I am attempting to use smoothScatter to plot a heatmap of locations of
events in an x-y axis. When I plot the heatmap without passing xlim and ylim
parameters, it fills the plot area but the perspective is a bit skewed. I
would like to standardize these plots to a uniform window size that does not
depend on the range of values in the dataframe. However, when I resize the
plot using xlim or
2008 May 22
1
plot 7 * 3 matrix on DIN A4 pdf
Hello,
I want to plot 21 scatter plots in a 7*3 matrix on a single A4 page
(using mfcol). Below is an example, which -by and large- looks very
close to the desired result. But I do not get it to fill out the whole
page. If I specify the a different page size, the plots still do not
fill out the whole page.
Anybody an idea what to do? Maybe adjusting indvidiual plot size (if
so, how?). Or is there
2008 May 14
4
Heatmap.2 - eliminate cluster and dendrogram
Using the heatmap.2 function, I am trying to generate a heatmap of a
2 column x 500 row matrix of numeric values. I would like the 1st
column of the matrix sorted from the highest to the lowest values -
so that the colors reflected in the first column of the heatmap (top
to bottom) go from red to green.
After sorting the matrix (z), I tried the following command, but the
data remains
2012 Dec 13
3
Combined Marimekko/heatmap
Hi all,
I'm trying to figure out a way to create a data graphic that I haven't ever seen an example of before, but hopefully there's an R package out there for it. The idea is to essentially create a heatmap, but to allow each column and/or row to be a different width, rather than having uniform column and row height. This is sort of like a Marimekko chart in appearance, except that
2009 Nov 17
1
Plotting graphs using FOR loop
I have the following codes but can anyone make it shorter i.e making these
FOR loop into one loop ...
thanks...
par(mfrow=c(2,4))
for(i in 16:23){
hist(data[,i],main=paste(colnames(data)[i],sep=""),ylab="Frequency",xlim=c(1,5),xlab="Score",ylim=c(0,100))
}
png("histogram.png")
dev.off()
par(mfrow=c(2,4))
for(i in
2004 Jul 21
2
Cutting heatmap dendrogram
Hello,
I've been clustering my data using hclust and cutting the resulting tree
with cutree. Separately, I visualize the clusterings with heatmap. Is it
possible to have the dendrogram on the heatmap reflect the cutree results?
That is, instead of having one large dendrogram, it would have 4 or 25 in
the example below. Any guidance on if that's possible or not, and what
kinds of
2016 Apr 18
2
heatmap2 error key
Hi I am trying to understand what happen with the heatmap.2 code that it
used to work (last used in October 2015). I am able to get a heatmap but my
colour key doesn't come up and instead I get an error in all my files the
used to work. Does anyone has any idea of what could have changed? or how
to fix this.
Thanks.
#
Error in seq.default(min.raw, max.raw, by = min(diff(breaks)/100)) :
2005 Jul 19
1
initial points for arms in package HI
Dear R-users
I have a problem choosing initial points for the function arms()
in the package HI
I intend to implement a Gibbs sampler and one of my conditional
distributions is nonstandard and not logconcave.
Therefore I'd like to use arms.
But there seem to be a strong influence of the initial point
y.start. To show the effect I constructed a demonstration
example. It is reproducible
2004 Jan 04
5
Analyzing dendograms??
I have used heatmap to visualize my microarray data. I have a matrix of
M-values. I do the following.
#The distance between the columns.
sampdist <- dist(t(matrix[,]), method="euclidean")
sclus <- hclust(sampdist, method="average")
#The distance between the rows.
genedist <- dist(matrix[,], method="euclidean")
gclus <- hclust(genedist,
2010 Apr 20
1
multiple plots problem
hello,
i try to plot 3 graphs which have the same x.axis underneath each other. i'd
like the plots to be aligned without margings between the boxes and draw a
single x axis beneath the lowest plot.
i managed to get the alignment by setting par(mar), but the middle box is
stretched
and i cant't figure out how to get around this. par(pin) was my guess, but
this doesn't do the job
2012 Jul 01
4
geom_boxplot
Also, it is possible to change "ylim" also?
2012/7/1 li li <hannah.hlx@gmail.com>
> Dear all,
> I have a few questions regarding the boxplot output from the
> "geom_boxplot" function.
> Attached is the output I get. Below are my questions:
>
> 1. How can I define the xlab and ylab myself?
> Also I would like to remove
2011 Jul 01
1
highlighting clusters in a heatmap
I would like to draw horizontal or vertical lines on a heatmap to
highlight the clusters at some specified cut depth of the dendrogram.
As a hacked example, the following code would work if I could set the
coordinates of the top and bottom of the false color image correctly
(ymin and ymax), but the correct values seem to depend on the output
device and its size. I realize that heatmaps use a 2x2
2010 Nov 17
3
aspect ratio 1 and blank space
Hi,
I need to produce an ordinary scatter plot and it is vital that the aspect ratio equals 1.
I set the axis as:
plot(x, y, type="n", asp=1, ,ylim=c(-80,70),xlim=c(0,100)).
The problem is that I get some 'additional' blank plot area (basically, the lower bound of xlim becomes quite negative).
The xlim is not the range of the x-data, but I need the 0 there for further
2012 Aug 06
4
Overlay Histogram
Dear all,
For two sets of random variables, say, x <- rnorm(1000, 10, 10) and y
<- rnorm(1000. 3, 20).
Is there any way to overlay the histograms (and density curves) of x and y
on the plot of y vs. x?
The histogram of x is on the x axis and that of y is on the y axis.
The density curve here is to approximate the shape of the distribution
and does not have to have area 1.
Thank you
2007 Mar 07
2
Multi-line plots with matrices in R
Hello all,
I'm a new user of R, experienced with Octave/MATLAB and therefore
struggling a bit with the new syntax.
One of the easy things in Octave or MATLAB is to plot multiple lines or
sets of points by using a matrix where either the columns or the rows
contain the y-values to be plotted. Both packages automatically give
each line/points their own unique colour, character etc.
I'm
2012 Jun 26
1
rms package-superposition prediction curve of ols and data points
Hello,
I have a question about the ?plot.predict? function in Frank Harrell's rms
package.
Do you know how to superpose in the same graph the prediction curve of ols
and raw data points?
Put most simply, I would like to combine these two graphs:
> fit_linear <- ols (y4 ~ rcs(x2,c(5,10,15,20,60,80,90)), x=TRUE, y=TRUE)
> p <- Predict(fit_linear,x2,conf.int=FALSE)
> plot (p,
2006 Feb 01
1
several plots in one
Can anyone tell me how I can supply more than one graph to plotCI
(gplots) at once?
Below is what I tried, also with rbind instead of cbind.
What is the way to do this (in general, I think)?
Problem is that lines of 1-st and 2-nd series are mixed, while they have
nothing to do with each other.
I also tried calling plotCI with argument add=TRUE, which didn't seem to
work (that is actually
2013 Feb 05
2
duplicate data
Hello,
I have a long list of x-, y- and z-data and try to generate a heatmap.
Obviously there are several data with identical x- and y-values. I get
the following error message:
Error in interp.old(x, y, z, xo = xo, yo = yo, ncp = 0, extrap = extrap, :
duplicate data points: need to set 'duplicate = ..'
Unfortunately there seems no help screen on "duplicate". I'd prefer