The following code fails to produce a plot, giving instead a small square in the upper left corner; the actual value of n where I do not get the plot varies (sometimes I can go up to 16639). And sometimes one can see the plot being partially drawn and then the square box is shown.
n <- 16640 #16639 sometimes works
sines <- outer(1:n, 1:4, function(x, y) sin(x / n * pi * y))
matplot(sines, type = "b", pch = 21:23, col = 2:5, bg = 2:5)
This is a screen capture:

In contrast, using EAF and also httpgd I can go to n = 100000:

This is not specific to this plot: I started seeing this in other matplots:
nb <- 5e5
bmm <- replicate(4, c(0, cumsum(rnorm(nb))))
## Fails (but not in EAF)
matplot(bmm[1:2e5, ], type = "l")
But this does not seem specific to matplot as this fails too:
plot(as.vector(bmm[1:2e5, ]), type = "l")
## This works
plot(as.vector(bmm[1:1.1e5, ]), type = "l")
The following code fails to produce a plot, giving instead a small square in the upper left corner; the actual value of
nwhere I do not get the plot varies (sometimes I can go up to 16639). And sometimes one can see the plot being partially drawn and then the square box is shown.This is a screen capture:
In contrast, using EAF and also httpgd I can go to n = 100000:
This is not specific to this plot: I started seeing this in other matplots:
But this does not seem specific to matplot as this fails too: