Did you try this?
image(x, xlim=c(0, 100), ylim=c(0, 100))
Jean
li li wrote on 07/22/2012 09:28:33 PM:
> 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
Hello,
image(1:100, 1:100, x)
Regards,
Pascal
Le 23/07/12 11:28, li li a écrit :
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
Hi,
image() resizes the range of the data to roughly 0-1 , as you can see with
par()$usr
so what you need is:
axis(1, 1:5/5, colnames(x))
or something similar.
the c() c(colnames(x)) is unnecessary, since colnames(x) already returns a
character vector, but in the example you provided (thanks!), x
On 23.09.2011 19:03, Maxim wrote:
Hi,
I have a question concerning the image function and how to generate custom
axis labels:
dat<-sample(0:1,1000,replace=T)
matrix(dat,ncol=5,nrow=200)->x
x[order(x[,1],x[,2],x[,3],x[,4],x[,5]),]->x
I would like to have a heatmap kind of thing like thi
I realized that my problem was not the image function but with the interp
function.
The default for the interp arguements xo and yo = 40, which is why I had a
40 X 40 square image.
Here is the revised command.
image(
interp(
ytar_rcayrtgy$V2, ytar_rcayrtgy$V4, ytar_rcayrtgy$V5,
xo=seq
Thanks Peter
zlevs and ylevs are similar, that was not the problem
Following your suggestion I now use
> image(tax, ylevs, Rmat, xaxt = "n")
> axis.POSIXct(1, at = seq(tax[1],tax[length(tax)],by="1 day"),format="%d-%m")
Which does what I wanted to do
I still get the warning message, but other
On 2010-04-29 12:15, Halldór Björnsson wrote:
I am trying to plot a image where the x axis has the units of time.
When I issue the
image(x,y,z) command with x as a POSIXct object, it fails to put a
time stamp on the
x axis.
Instead I get a warning "Incompatible methods" warning and no dates on
m
Use the zlim argument to image:
m <- matrix(1:18,3,6)
par(mfrow = c(2,1))
image(1:6, 1:3, t(m), col = rainbow(20), zlim=c(0,30))
image(1:6, 1:3, t(m+9), col = rainbow(20), zlim=c(0,30))
hope this helps,
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@
8 matches
Mail list logo