# [R] Plotting log-axis with the exponential base to a plot with the default logarithm base 10

Xianwen Chen xianwen.chen at gmail.com
Mon May 10 20:43:25 CEST 2010

```Dear Elisabeth,

log(X) shall return logarithm of X, with the base of e.

If you are not sure, you can specify e to be the base, e.g.:
log(X,exp(1))
.

Snow in Tromsø is melting, so will your problem.

King regards,

Xianwen

On Mon, May 10, 2010 at 6:11 PM, Elisabeth Bjerke Rastad
<ebr024 at post.uit.no> wrote:
>
> Hello!
> What I am trying to do is to plot my raw values (biomass of different
> species) on a logaritmic y-axis with the base of e. When I type "log="y"",
> the axis transforms into a logaritmic axis with the base of 10.
>
> Best regards,
> Elisabeth
>
> > Dear Elisabeth,
> >
> >     I'm not sure if I have understood your question -- are you trying
> > to use a different logarithmic base?
> >
> >                                                          Kind regards,
> >
> >                                                          Xianwen
> >
> > On Sun, May 9, 2010 at 8:05 PM, Elisabeth Bjerke Rastad
> > <ebr024 at post.uit.no> wrote:
> >> Hello!
> >>
> >> I have a problem which I have tried to solve for several days now..
> >>
> >> I have plottet a lineplot.CI in the library "sciplot", and I am trying
> >> to
> >> plot it with a logaritmic y-axis (with exponential base).
> >>
> >> The problem is that; when I type "log "y"", the axis transforms into the
> >> logaritmic of base 10.
> >>
> >> I wonder if someeone could tell me how to specify that I would like to
> >> use
> >> the exponential logaritmic y-axis. I have tried a lot (but obviously not
> >> all, I guess this problem is possible to solve..)
> >>
> >> Hope you would like to help me! Thank you a lot in advance!!
> >>
> >> Greetings,
> >>
> >> (Master's student, Norway)
> >>
> >> ______________________________________________
> >> R-help at r-project.org mailing list
> >> https://stat.ethz.ch/mailman/listinfo/r-help
> >> http://www.R-project.org/posting-guide.html
> >> and provide commented, minimal, self-contained, reproducible code.
> >>
> >
> >
> >
> > --
> > Xianwen Chen, M.Sc.
> > Scientific assistant, BFE, UiT (www.uit.no)
> > Tel.: +47 776 46 112 | Fax: +47 776 46 020
> >
> >
>
>

--
Xianwen Chen, M.Sc.
Scientific assistant, BFE, UiT (www.uit.no)
Tel.: +47 776 46 112 | Fax: +47 776 46 020

```