Removing all margins in an R graphics device

Viewed 5778

So I'm having a bit of trouble getting rid of the entire margin of a graphics device. I've set mar to 0, but there is still some persistent space around the edge. For example:

plot.new()
par(mar=c(0,0,0,0))
plot.window(c(0,1),c(0,1))
points(c(1,1,0,0),c(1,0,1,0))

enter image description here

I would like the points to be centered at the extreme edges of the plot. Is there a par that I am missing?

2 Answers
Related