Skip to content
Prev 220145 / 398500 Next

Plotting log-axis with the exponential base to a plot wi

On 09-May-10 20:15:56, Elisabeth Bjerke Rastad wrote:
Hi Elisabeth! If the values displayed in the y-axis annotation
are raw y-values (i.e. equal increments in distance along the
y-axis correspond to equal multiples of the raw y-value), then
it does not matter. By default, plot() (therefore lineplot.CI())
will choose the plotting extent so as to nicely include all
the plotted values, and will choose the numbers placed against
the y-axis as annotations according to a nice ("pretty") set
of increasing values. These numbers will usually be a series
of "round" numbers, not necessarily increasing in a regular
manner (e.g., as in my "plot(5*Y,log="y")" example below,
0.5, 1.0, 2.0, 5.0, 10.0, 20.0, 50.0) and will not be equidistant
either. But, since the log(Y)'s (to any base of logs) will be
fitted into the available length of y-axis (which by default
is pre-set), and the annotation with raw y-values will be correct
for the untransformed y's, and since the log to base A is a
constant multiple of the log to base B, whatever base the logs
are taken to will not affect the plot.

However (as I indicated below) if you want the *logs* of the
y-values to be used as annotation then it is a different matter
(but it seems that this is not what you want).

I hope this helps!
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 09-May-10                                       Time: 21:36:35
------------------------------ XFMail ------------------------------