Displaying 20 results from an estimated 1000 matches similar to: "levelplot border and dendrogram width"
2009 Jul 21
1
problem with heatmap.2 in package gplots generating non-finite breaks
I have written a wrapper for heatmap.2 called
heatmap.w.row.and.col.clust which auto-generates breaks using
breaks<-round((c(seq(from=(-20 * stddev), to=(20 * stddev))))/20,
digits = 2) #(stddev in this case = 2.5)
This has always worked well in the past but now I am getting an error
that non-finite breaks are being generated. Drilling down, it seems
that my wrapper is generating finite
2009 Jun 15
0
heatmap.2 questions
I'm using this code to create a heatmap of expression data and indicate a
specific column of data, post clustering:
#Generate heatmap:
heatmapChipDx <- heatmap.2(L3data_med2, dendrogram="column",trace="none",
col=redgreen(64), colsep=seps, sepcolor="yellow", sepwidth = 0.1,
margin=c(5,5), scale="row", key=FALSE)
I have two problems that I'm
2011 Sep 21
0
heatmap.2 with colsep and sepwidth
I am using attributes colsep and sepwidth from heatmap.2 function,
however when using larger values for sepwidth the following columns are
not moved to the right but the seperator is covering the column(s) with
a white bar and the column labels and ColSideColors remain at their
positions, is this intended? I expected the following columns to be
shifted to the right by sepwidth. Is there a way
2009 May 02
1
lattice levelplot axis + custom annotations
How would I set the "scales" property of a lattice levelplot, so that
I can add specific annotations at specific positions?
For example, I have a 200 x 1000 element levelplot. Along the y-axis
(along the 1000-element axis) I would like to add annotations on the
left side of the levelplot at elements 120, 300, 500, and 805, which
represent clusters of interest.
Currently I have
2012 Apr 03
0
dendrogramGrob cuts off dendrograms (latticeExtra)
Hi,
I'm using the latticeExtra package's dendrogramGrob function to create a grob with both a dendrogram and a covariate bar (via the 'add' parameter). When the dendrogram has very short branches at its leaves, it appears as a line and becomes impossible to see when placed next to the covariate bar.
For example:
> x <- outer(-5:5, -5:5, "*") + matrix(nrow = 11,
2006 Feb 02
0
Heatmap.2 axes question
I'm suppressing the labeling of my rows and columns in heatmap.2 using the
commands:
labRow = " ", labCol = " "
But I'd like to annotate them again using the axis command:
axis(1, at=seq(500, 1000, 500))
mtext("Group 1", "Group 2")
For some reason however it appears that the axis command is having no
effect. My complete
2011 Jul 24
0
setting distance matrix and clustering methods in heatmap.2
heatmap.2 defaults to dist for calculating the distance matrix and hclust for
clustering.
Does anyone now how I can set dist to use the euclidean method and hclust to
use the centroid method?
I provided a compilable sample code bellow.
I tried: distfun = dist(method = "euclidean"),
but that doesn't work. Any ideas?
library("gplots")
library("RColorBrewer")
test
2007 Sep 17
1
side bars on dendrograms with latticeExtra
Dear all,
I am using the heatmap representations of latticeExtra package and I
would be interested to draw color side bars representing the groups of a
factor of interest. From my understanding of :
> help(dendrogramGrob)
...
The 'add' argument can be used for additional annotation at the
base of the dendrogram. It should be a list with one component
for each row,
2008 Oct 17
1
padding "bug" in lattice/levelplot
Hello,
I have encountered some unexpected behaviour with levelplot that may
simply be a misunderstanding on my part.
If I create a levelplot from a matrix with named columns, some
"padding" space appears at the top and bottom of the heatmap. Here is
an example, and I've used panel.fill to make the space I'm speaking of
evident (in green).
2011 Jul 28
0
lattiace bug with levelplot borders
Hi,
I would like to report a problem with the levelplot borders in lattice.
Description:
The borders in levelplots appear when running in a Windows setting, however running the identical command in Linux does not generate the plot with the borders.
The commands used were:
library(lattice)
levelplot(volcano, border = 'black', shrink = c(0.7, 0.7));
The same version of R (2.13.0) and
2004 Sep 07
1
gridBase and heatmap
I would like to use gridBase to place four separate heatmaps (actually,
a stripped-down heatmap.2 from ght gregmisc package that contains only
the "image" part) into four different viewports. I can get the
placement correct, but I keep 'losing' the previous plot. Any
suggestions?
Here is some quick example code trying to put a heatmap into the left
viewport and then
2005 Apr 20
1
overlaying a contour line in a levelplot
Hello there,
I am creating a series of images using levelplot but I also want to
overlay a contour for a particular value as reference. Here is the
levelplot command for the image:
print(levelplot(d~x+y,data=t,cuts=20,scales=list(draw=F),xlab=NULL,ylab=
NULL,col.regions=heat.colors(100)[100:1]),split=c(1,1,1,1),more=T)
and then to add the contour plot (I only want a contour at level 5):
2004 Aug 31
1
add single contour line to levelplot
Hello,
I want to add a single contour line to a levelplot but can't figure out
how to do it 'on-the-fly'. When I include the last line in the code below,
I get the following error:
Error in NextMethod("[") : Argument "subscripts" is missing, with no default
Any tips on how to fix this are greatly appreciated!
Ian Jonsen
2009 Nov 09
1
How to change color the default in levelplot() ?
Dear R communities
May I seek your advices on how to change color the default in levelplot(), e.g. from the default of pink and light blue, to e.g. red and green ?
The levelplot function has 1 of the arguments being panel (which is actually panel.levelplot), but I am not sure where the commands to alter the color.
For example, I type:
p1<-levelplot(my.mat,colorkey=FALSE),
how could I
2004 Feb 25
2
levelplot add line
R folks,
I can't seem to find the instructions in the help files for the lattice
package that explain how to add lines, such as with lines() or ?, to a
levelplot. I'd be grateful if someone could point me in the proper direction.
Cheers,
Jeff
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jeff Jorgensen
Center for Limnology jcjorgensen at wisc.edu
2006 Sep 13
1
forcing levelplot to use relative cuts (ie cuts for each panel)
Dear guRus,
I'm having trouble producing a levelplot with relative cuts for each
panel (my data has large differences in scales, so I want to use
quantiles for each panel).
My attempts to change the 'at' argument in panel.levelplot function
have not met with success.
Below is a toy example.
xy <- expand.grid(x = 1:3, y = 1:3)
aaa <- rbind(cbind(xy, z = 1:9, site =
2005 Jan 26
2
postscript() and levelplot() in a for loop
Hi,
I like to produce a series of levelplot graphs in postscript file, so I put
the trunk of codes including postscript() and levelplot() in a for loop. The
codes work fine outside the loop, but only produce empty .ps file when being
put within the loop. Is it a problem associated with postscript() or
levelplot()? How to get around the problem? Many thanks!
Yan
[[alternative HTML
2010 May 21
3
Levelplot
Dear mailing list,
I am trying to find out, how do a levelplot without labels on the x- and y-axis.
The labels=FALSE does not work...can anyone help me?
m <- matrix(1:25, ncol=5)
levelplot(m, labels=F)
Regards,
Benedikt
2004 Apr 27
1
helps on levelplot
I'm a new user of levelplot, and are not familiar with the terminology
very well. Is the bar alongside the levelplot indicating color or shade
call "colorkey"? I have to adjust the size of its label, but couldn't
make it so far. This is how I did:
levelplot(z~x*y, grid, at=seq(0,1,by=0.1),
colorkey=list(labels=list(cex=2)))
But I got error message "Error in
2010 Mar 31
2
lattice: how to add points to the plot generated by levelplot()?
I am using levelplot() function from pkg:lattice and I want to add some
points
to the plot generated by levelplot()
similarly as in basic R graphic sequence: plot(...); points(...),
but it does not work.
I was reading documentation for lattice, but so far without much
success.
I would very much appreciate some tips.
Best regards,
Ryszard