[R-sig-Geo] plot.im annoyances

Adrian.Baddeley at csiro.au Adrian.Baddeley at csiro.au
Fri Dec 30 11:13:10 CET 2011


Quets Jan <Jan.Quets at ua.ac.be> wrote:

 > Hello all,
> I have several issues with using plot.im to plot a density map.

This query is about the package 'spatstat'. 
Please email the package authors first if you have a query, especially if you want something fixed. 
And if you want an answer, avoid words like 'annoyance'.

 > the issues are:
> 1) cex.main doesn't work, cannot scale font of title

The help for plot.im does not mention cex.main and does not promise that arguments such as cex.main will be handled.
However since this is the season of goodwill, I will add this functionality to the next version of spatstat.

>  2) setting margins with mar=c(x,x,x,x) does not seem to work 

Remember that the plot functions in spatstat are equal-scale plots. The physical scale of the x and y axes must be the same. If the physically available plotting region (minus the margins) does not have the same aspect ratio as the image to be plotted, then the image will not take up the entire space. The plot dimensions are determined by a call to plot.default with asp=1 so this all happens in the 'base graphics' system.

 > 3) uninvited white lines traversing plot area

This occurs on some graphics devices because of a change to image.default in R 2.14.0.
A workaround will be added to the next version of spatstat.

> 4) axes=FALSE didn't work, ticks and labels on the ribbon are still there

Again this is not designed to happen but it seems like a good idea so it will be added to the next version of spatstat.

regards
Adrian Baddeley



More information about the R-sig-Geo mailing list