[R] image.plot for non-regular grid: round pixel
Sebastian Schubert
schubert.seb at googlemail.com
Thu Sep 22 17:52:25 CEST 2011
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110922/276d158c/attachment.bin>
More information about the R-help
mailing list