Displaying 11 results from an estimated 11 matches for "denscols".
2013 Mar 28
1
scatterplot3d with densCols ?
Hi,
I was trying to make a 3D plot using densCols. The documentation for
densCols doesn't look like it'll work for 3D. For example:
-----------------------------------------
library(scatterplot3d)
v1 <- rnorm(10000)
v2 <- rnorm(10000)
v3 <- rnorm(10000)
## 2D with denscols
mat1 <- cbind(v1,v2)
mcols1 <- densCols(mat1)
plo...
2010 Apr 19
1
densCols: what are the computed densities and how to create a legend
Hi,
I'm using the densCols function for a scatterplot and cannot figure out 1) how to extract the computed densities, and 2) how to create a legend based that represents the upper and lower ranges of the densities.
For example:
movers.den <- densCols(move$x, move$y)
table(movers.den)
#08306B #083775 #083B7C #083D7E #39...
2008 Mar 14
1
smoothScatter
...x <- rbind(x1,x2)
layout(matrix(1:4, ncol=2, byrow=TRUE))
op <- par(mar=rep(2,4))
smoothScatter(x, nrpoints=0)
smoothScatter(x)
smoothScatter(x, nrpoints=Inf,
colramp=colorRampPalette(brewer.pal(9,"YlOrRd")),
bandwidth=40)
colors <- densCols(x)
plot(x, col=colors, pch=20)
par(op)
But I can't even get the example to work. I have installed geneplotter and RColorBrewer, but I get the messages "
Error: could not find function "smoothScatter"
Error: could not find function "densCols"
I thought it was someth...
2012 Oct 02
5
smoothScatter plot
Hi, I want to make a plot similar to sm1 (attached). The code I tried is: dcols <- densCols(x,y)
smoothScatter(x,y, col = dcols, pch=20,xlab="A",ylab="B")
abline(h=0, col="red")
But it turned out to be s1 (attached) with big dots. I was wondering if anything wrong with my code. Thanks,Zhengyu
-------------- next part --------------
A non-text att...
2006 May 16
0
reordering materix presentation in heatmap.2 in the 'gplots' library
Dear R users,
I'm trying to create images of 2 symmetrical matrices using heatmap.2 of the 'gplots' library. Both matrices have the same row and column names
For the first matrix I'm using the default clustering and column denrogram options:
heatmap.2(Matrix1, symm=T, breaks=20, col=rich.colors(19), main="matrix1", density.info="histogram",
2005 Apr 28
1
strange behaviour of importFrom directive in name space
...t
none the less I wanted to mention this strange behaviour. Could it be a
bug?
Regards,
Florian
Here is my NAMESPACE file:
export("analysePlate", "as.all",
"barploterrbar", "combineFrames",
"csApply", "ddCt",
"densCols", "eListWrite",
"fitNorm2", "getPradaPar",
"histStack", "plotNorm2",
"plotPlate", "readCytoSet",
"readFCS", "readSDM",
"removeCensored", "setPradaPars&quo...
2005 Apr 28
1
strange behaviour of importFrom directive in name space
...t
none the less I wanted to mention this strange behaviour. Could it be a
bug?
Regards,
Florian
Here is my NAMESPACE file:
export("analysePlate", "as.all",
"barploterrbar", "combineFrames",
"csApply", "ddCt",
"densCols", "eListWrite",
"fitNorm2", "getPradaPar",
"histStack", "plotNorm2",
"plotPlate", "readCytoSet",
"readFCS", "readSDM",
"removeCensored", "setPradaPars&quo...
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 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
2013 Jun 04
1
High volume plot using log(local density)
Hi,
I am using the densCols to draw a high volume scatter plot. Instead of
using the default local density, I would like to take log of the local
density and then map them to the colors. I could not figure out how to do
that.
For example:
plot(x,y,col=densCols(x,y,"log")) ?
Any help would be appreciated!
Jiaxiu...
2010 Jun 30
3
Factor Loadings in Vegan's PCA
Hi all,
I am using the vegan package to run a prcincipal components analysis
on forest structural variables (tree density, basal area, average
height, regeneration density) in R.
However, I could not find out how to extract factor loadings
(correlations of each variable with each pca axis), as is straightforwar
in princomp.
Do anyone know how to do that?
Moreover, do anyone knows