[Rd] Bug with png() and plot(type="n") (PR#7270)

From: <mcintosh_at_research.telcordia.com>
Date: Sat 09 Oct 2004 - 05:45:09 EST

Full_Name: Allen McIntosh
Version: 2.0.0
OS: Linux
Submission from: (NULL) (

Observed the bug with the following combinations: (RedHat 7.3, R 1.6.0) (RedHat 7.3, R 1.9.1) (Redhat 9, R2.0.0).

In the second plot (.png file) produced by the following sequence:


the axis labels, the tick marks and the title from the first plot have not been erased. The call to segments() seems to be necessary, as does type="n". The example I extracted this from also called abline(), which was sufficient to trigger the bug. Inserting a call to frame() after the call to segments() results in an extra file that ought to be blank, but instead contains the offending text and tick marks.

Workarounds short of multiple calls to png() appreciated.

R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat Oct 09 05:49:40 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:00:31 EST