oceAxis | R Documentation |
Draw an Axis, Possibly with Decade-style Logarithmic Scaling
oceAxis(side, labels = TRUE, logStyle = "r", ...)
side |
an integer specifying which axis to draw, with 1 for bottom axis, 2 for left axis,
3 for top axis, and 4 for right axis (as with |
labels |
either a vector of character values used for labels or a logical value indicating
whether to draw such labels. The first form only works if the coordinate is not logarithmic,
and if |
logStyle |
a character value that indicates how to draw the y axis, if
|
... |
other graphical parameters, passed to |
Numerical values at which tick marks were drawn (or would have been drawn, if labels
specified to draw them).
Dan Kelley
library(oce)
Ra <- 10^seq(4, 10, 0.1)
Nu <- 0.085 * Ra^(1 / 3)
plot(Ra, Nu, log = "xy", axes = FALSE)
box()
oceAxis(1, logStyle = "decade")
oceAxis(2, logStyle = "decade")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.