[Rd] Graphics: log="x" plot (PR#7986)

jincaijiang@yahoo.com jincaijiang at yahoo.com
Mon Jul 4 01:12:46 CEST 2005

Full_Name: Jincai Jiang
Version: 2.1.1
OS: Red Hat 7/8/9, Windows XP
Submission from: (NULL) (

when plot in log="x", and the data has a point with negative x such as
(-1,10000), and when the y for this x is the max of all y's in the data set, the
y scale looks wrong.


The data point (-1,100000), not just the x value of it, should be discarded.

Comment on gsub() and sub():

it is illogical to use \ to escape another \ which is for escaping other
characters such as gsub('\\([sS]\\),'\\1', a, extended=F). It should only use \
to escape \ which is literal backslash. Also it should default to extended=F.
The above gsub() should read: gsub('\([sS\)','\1', a).

Thank you all for the great work!


More information about the R-devel mailing list