Skip to content
Prev 319440 / 398506 Next

expression exponent labeling

On 2013-03-13 06:37, Gerrit Eichner wrote:
Here's another (really no different) solution:

  for(i in -8:-3) axis(1, i, bquote(10^.(i)))

For more flexibility, if you need to do this a lot, you could
create an "expression" vector:

  x <- -8:-3
  z <- vector("expression", 6)
  for(i in 1:6) z[[i]] <- bquote(10^.(x[i]))
  axis(1, x, z)

Peter Ehlers