[R-sig-Geo] Image a matrix
Michael Sumner
mdsumner at gmail.com
Mon Jul 5 04:41:31 CEST 2010
What about setting the aspect ratio?
image(volcano, asp = 1)
Note that plotting functions (including image.SpatialGridDataFrame)
will set the aspect ratio to 1, or if unprojected to a ratio based on
the latitude of the data. See ?Spatial.
Cheers, Mike.
On Mon, Jul 5, 2010 at 12:25 PM, Chen, Shaofei
<shaofei.chen at utdallas.edu> wrote:
> Dear All,
>
> Using "image" function, we can map a matrix. If the matrix is square, the map will look fine. However, if the matrix is not square, the map will be distort. For example, the dimension of volcano in the help file is 87 by 61. So the unit length of x axis is different from it of y axis. I bet this is not good for geovisualization
> Is there anyway to image a non-square matrix without distortion? I think combining the data matrix with a matrix with "NA" to form a square is an option. But it looks not very clever.
> Thank you very much!
>
> Best,
> Shaofei
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
More information about the R-sig-Geo
mailing list