Displaying 3 results from an estimated 3 matches for "nrpoints".
Did you mean:
npoints
2008 Mar 14
1
smoothScatter
...the example to work.
library("geneplotter")
require("RColorBrewer")
x1 <- matrix(rnorm(1e4), ncol=2)
x2 <- matrix(rnorm(1e4, mean=3, sd=1.5), ncol=2)
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 geneplot...
2008 Sep 22
1
SmoothScatter plot range issue
...d plot. I have
attempted to add NAs, but it has no effect on expanding this light blue plot
area. Code is below.
#### xyz is a dataframe containing two columns with corresponding x and y
values
library(geneplotter)
library(RColorBrewer)
layout(matrix(1:1, ncol=2, byrow=TRUE))
smoothScatter(xyz, nrpoints=0, xlim=c(-3,3),
ylim=c(0,5),colramp=colorRampPalette(c("#f8f8ff", "white",
"#736AFF", "cyan", "yellow", "#F87431", "#FF7F00", "red",
"#7E2217")))
###END
Thanks very much for any help,
Jason
[[alternative...
2011 Jun 10
1
smoothScatter function question and adding a legend
..."orange", "darkorange", "red", "darkred")
> x <- read.table("c:/users/ccolling/log_u1m1.txt", sep ="\t")
> smoothScatter(x$V8~x$V7,
nbin=1000,
colramp = colorRampPalette(c(clayton)),
nrpoints=Inf,
pch="",
cex=.7,
transformation = function(x) x^.14,
col="black",
main="M1 vs. M3 (r = 0.92)",
xlab="Normalized M1",
ylab="Normalized M2&...