Did you try this? image(x, xlim=c(0, 100), ylim=c(0, 100)) Jean
li li <hannah....@gmail.com> 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) > instead of (0,1). > Thank you very much. > > x <- matrix(rnorm(10000, 0,1), 100, 100) > > image(x) > > > Hannah [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.