[prev in list] [next in list] [prev in thread] [next in thread]
List: r-help
Subject: [R] image.plot for non-regular grid: round pixel
From: Sebastian Schubert <schubert.seb () googlemail ! com>
Date: 2011-09-22 15:52:25
Message-ID: 201109221752.30830.schubert.seb () googlemail ! com
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Hi,
I am very new to R so I hope this is not stupid. Here a small example:
(I use R version 2.13.1)
########################
library("fields")
## round pixel
x=matrix(1:100,ncol=10)
y=matrix(1:100,ncol=10)
for(i in 1:10){
x[i,] <- 1:10 + i
y[i,] <- 1:10 + i/20
}
#x=1:10
#y=1:10
z=matrix(1:100,ncol=10)
pdf("test.pdf")
image.plot(x,y,z)
dev.off()
########################
With that, the generated pixels have round corners. Uncommenting the
second assignements for x and y results in rectangular pixel.
For the actual data which I wanted to plot the round corners look much
worse. What can I do to get non-round pixels?
Thanks a lot!
Sebastian
["signature.asc" (application/pgp-signature)]
______________________________________________
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.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic