Bug 16413 - unexpected behaviour of plot.window() with setting of logarithmic coordinates
Summary: unexpected behaviour of plot.window() with setting of logarithmic coordinates
Status: UNCONFIRMED
Alias: None
Product: R
Classification: Unclassified
Component: Graphics (show other bugs)
Version: R 3.2.0
Hardware: x86_64/x64/amd64 (64-bit) Linux
: P5 trivial
Assignee: R-core
URL:
Depends on:
Blocks:
 
Reported: 2015-06-07 18:32 UTC by Linus
Modified: 2015-06-07 18:32 UTC (History)
0 users

See Also:


Attachments
example for a prolem w.r.t. to logarithmic coordinate in plot.wondow() (350 bytes, text/plain)
2015-06-07 18:32 UTC, Linus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Linus 2015-06-07 18:32:08 UTC
Created attachment 1841 [details]
example for a prolem w.r.t. to logarithmic coordinate in plot.wondow()

I would expect the "plot.window()" function to set
the coordinate system according to the log=... parameter,
whenever this parameter is provided.
But this is not always the case.

With the attached code, the 1st and 2nd curved are plotted as
expected. But the 3rd curve has a logarithmic y coordinate, similar to
that of the 2nd curve. I expected it to be linear (similar to curve 1),
because I have provided the parameter log="".

It seems that, after the plotting of the curve 2, the par("ylog") has
been set to True. And this can not be reverted even if log="" is given
in the next plot.window() calling.

I labeled the severity of this problem as "trivial". because one can easily
circumvent the problem by always use par() to do the setting, instead of
using log=... in plot.window(). For example:
par(xlog=F, ylog=F)
plot.window( x,y, xlim=c(1, 10), ylim=c(1, 10) ) 
This way one can always control the coordinate as wanted.

However, I still think the current behavior of plot.window() to be unexpected.