From ripley at stats.ox.ac.uk  Fri Jun 27 17:53:13 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Fri, 27 Jun 2008 16:53:13 +0100 (BST)
Subject: [Rd] plot(type="l") disjoint between 100 and 101st datapoint
In-Reply-To: <eea558470806270438h4c9e7242v274d84c4b872c36a@mail.gmail.com>
References: <eea558470806270329s40e512f1vba68a4ac3938231e@mail.gmail.com>
	<eea558470806270438h4c9e7242v274d84c4b872c36a@mail.gmail.com>
Message-ID: <alpine.LFD.1.10.0806271649570.23779@gannet.stats.ox.ac.uk>

Please, this is specific to your device (since png() on MacOS defaults to 
quartz).  So discuss it on R-sig-mac.

Try a different device (you do have several of those on your system!) 
including a different version of png().

I think it is related to the fix for excessively slow plotting in 2.7.0, 
but I'm not near my Mac.

On Fri, 27 Jun 2008, Richard Martin wrote:

> Dear All:
>
> We have been experiencing networking issues so I don't know if this
> got through; I can't see it in the archive.  My sincere apologies if
> this appears twice.
>
> I may have found an unusual bug and am posting here to see if anyone
> can reproduce it on their system. First of all, sessionInfo():
>
>> sessionInfo()
> R version 2.7.1 (2008-06-23)
> i386-apple-darwin8.10.1
>
> locale:
> en_GB.UTF-8/en_GB.UTF-8/C/C/en_GB.UTF-8/en_GB.UTF-8
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> The bug is in the plot() command; it does not draw the line between
> the 100th and 101st point in a dataset when plotting in line mode
> (type="l").
>
> plot(1:102, type="l") reproduces the problem consistently on my
> machine, on both png and quartz devices. The result of saving this to
> the png device by the code below can be seen at
> http://imagebin.ca/view/txKBk2M.html
>
>> png(filename="disjoint.png")
>> plot(1:102, type="l")
>> dev.off()
> quartz
>    2
>
> I had a look through the archives but couldn't see any discussion of
> this; apologies if I missed it. Is this purely a mac issue?
> Unfortunately I don't have any other machines to test it on.
>
> Kind regards,
>
> Richard Martin
>
>
>
>
> --
> Contendere, Explorare, Invenire, et non Cedere
>
>
>
> -- 
> Contendere, Explorare, Invenire, et non Cedere
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] plot(type="l") disjoint between 100 and 101st datapoint
Prof Brian Ripley