Bug 7986 - Graphics: log="x" plot
Summary: Graphics: log="x" plot
Status: NEW
Alias: None
Product: R
Classification: Unclassified
Component: Wishlist (show other bugs)
Version: old
Hardware: All Linux-Fedora
: P5 normal
Assignee: Jitterbug compatibility account
URL:
Depends on:
Blocks:
 
Reported: 2005-07-04 04:12 UTC by Jitterbug compatibility account
Modified: 2005-07-04 04:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jitterbug compatibility account 2005-07-04 04:12:39 UTC
From: jincaijiang@yahoo.com
Full_Name: Jincai Jiang
Version: 2.1.1
OS: Red Hat 7/8/9, Windows XP
Submission from: (NULL) (65.103.188.91)



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.

p<-cbind(c(-1,10,100,1000),c(100000,1,2,3))
plot(p,log="x")

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!

Jincai

Comment 1 Jitterbug compatibility account 2005-07-05 22:14:00 UTC
NOTES:
 Neither suggestion is a bug.
Comment 2 Jitterbug compatibility account 2005-07-06 00:14:06 UTC
Audit (from Jitterbug):
Tue Jul  5 19:14:06 2005	dmurdoch	changed notes
Tue Jul  5 19:14:06 2005	dmurdoch	moved from incoming to wishlist