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
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(1, 0,1), 100, 100)
image(x)
Hannah
in context:
http://r.789695.n4.nabble.com/A-question-about-R-image-function-tp3875581p4102588.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
Hi,
On Wed, Oct 5, 2011 at 1:44 PM, JeffND wrote:
> Dear folks,
>
> I have a question about the image() function in R. I found the following
> link talking about this
> but the replies didn't help with my situations.
>
> http://r.789695.n4.nabble.com/question-on-image-function-td839275.html#a8392
not work as the coordinates of the points
are not ascending.
Thanks a lot!
Jeff
--
View this message in context:
http://r.789695.n4.nabble.com/A-question-about-R-image-function-tp3875581p3875581.html
Sent from the R help mailing list archive at Nabble.com.
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
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 this:
image(t(x),col=c(0,1),axes=F)
a
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
Hi, I am new to R.
With the command below, I generated the image on the left in R.
On the right, with the same data (x,y,z in columns), I generated a similar
image in SigmaPlot.
If you look at the R image, one can see that the resolution is low. Even
though the data
represents a 131 X 131 matri
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
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
my x axis.
This example shows my problem:
Rmat=
g.s...@imail.org
801.408.8111
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of Jorge Hernandez
> Sent: Friday, March 26, 2010 4:21 AM
> To: r-help@r-project.org
> Subject: [R] image() function
>
> Hello
Hello.
I would like to know how to set the image() function so that it assigns
colors
relative to an absolute scale, as opposed to relative to the values
present
in a particular call to image().
For example:
m <- matrix(1:18,3,6)
par(mfrow = c(2,1))
image(1:6, 1:3, t(m), col = rainbow(20)
16 matches
Mail list logo