3

I am plotting point density using the plot.im command in spatstat, and my output always has a frame around the plotted image that becomes thicker when I increase resolution for export. I tried frame=F, axes=F, plot.frame=FALSE, bty='n' but none of them seem to fix the issue. Anyone know a solution to this?

3

Use box=FALSE (see ?plot.im: argument box, a logical value specifying whether a box should be drawn.):

Z <- setcov(owin())
tc <- colourmap(rainbow(128), breaks=seq(-1, 2, length=129))
plot(Z, col=tc)

plot with box

plot(Z, col=tc, box=FALSE)

plot without box

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.