Dear R-Help,

When plotting a raster object the origin (0,0) is placed in the center.

E.g. using: 
library(raster)
mat = matrix(runif(100),10,10)
r <- raster(ncol=10, nrow=10)
values(r) <- mat
plot(r, main='Raster example',xlab="x",ylab="y") 

Does anyone know how to adjust the coordinate system?
E.g. I would like to have 0,0 at the top left.
My naive approach was to use "axis()" but this has no effect.

Thanks in advance for any advice.

Best regards,
Jan

______________________________________________
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.

Reply via email to