Hi all,
I want to label an axis with exponents, but can't get it done with expression.
Any hints would be very welcome!
# simulated data, somewhat similarly distributed to my real data:
set.seed(12); d - rbeta(1e6, 0.2,2)*150 ; d - d[d1e-8]
hist( d , breaks=100)
# now on a logarithmically
Hi, Berry,
I think
for(i in -8:-3) axis(1, i, substitute(10^j, list( j = i)))
achieves what you want.
Regards -- Gerrit
On Wed, 13 Mar 2013, Berry Boessenkool wrote:
Hi all,
I want to label an axis with exponents, but can't get it done with expression.
Any hints would be very
On 2013-03-13 06:37, Gerrit Eichner wrote:
Hi, Berry,
I think
for(i in -8:-3) axis(1, i, substitute(10^j, list( j = i)))
achieves what you want.
Regards -- Gerrit
Here's another (really no different) solution:
for(i in -8:-3) axis(1, i, bquote(10^.(i)))
For more flexibility, if
3 matches
Mail list logo