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]]
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 you very much. > > x <- matrix(rnorm(10000, 0,1), 100, 100) > > image(x) > > > > > > > Hannah > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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. >
Did you try this? image(x, xlim=c(0, 100), ylim=c(0, 100)) Jean li li <hannah.hlx@gmail.com> wrote on 07/22/2012 09:28:33 PM:> Dear all, > I have a question regarding changing the xlim and ylim in thefunction> 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]]