scinot {emdbook} | R Documentation |
Takes a number and returns a version formatted in LaTeX
(suitable for use with Sexpr()
in an Sweave document)
or in expression()
(suitable for plotting)
scinot(x, format = c("latex", "expression"), delim="$", pref="", ...)
x |
a numeric vector (of length 1) |
format |
produce LaTeX or expression() format? |
delim |
delimiter to add at beginning and end (latex only) |
pref |
text to put before expression (expression only) |
... |
additional arguments to formatC |
a character vector (if latex
) or expression (if expression
)
Ben Bolker
formatC
, expression
,
plotmath
,
latexSN
in Hmisc
package
scinot(1e-5) scinot(1e-5,digits=0) scinot(1e-5,"expression") scinot(1e-5,"expression",pref="p=")