3

I must have changed something in my par() settings, but I cannot recall what. It looks like my inner figure margins must have changed somewhere. This is obvious whenever I add lines, using the lines(), abline(), or points() functions during plotting.

Below is an image to illustrate the problem:

enter image description here

The black solid line at y=0 represents an abline(h=0). As you can see, the line just crosses the plotting region.

Any ideas on how to fix this? I have tried multiple things, but did not come to a solution for this problem just yet.

gung - Reinstate Monica
  • 11,583
  • 7
  • 60
  • 79
KoenVdB
  • 293
  • 2
  • 12

1 Answers1

2

The answer to my problem was given by setting par(xpd=FALSE) .

Thanks to Ben Bolker.

KoenVdB
  • 293
  • 2
  • 12