axis_blank | R Documentation |
A wrapper function for axis
with three changes.
1. labels = FALSE
is now the default.
2. tck
has been added as an argument, which is used to specify the size of the tick mark.
3. minor
has been added as an argument. Used to add minor (i.e., smaller) tickmarks equally between the first axis.
axis_blank( side, at = NULL, labels = FALSE, tick = TRUE, line = NA, pos = NA, outer = FALSE, font = NA, lty = "solid", lwd = 1, lwd.ticks = lwd, col = NULL, col.ticks = NULL, hadj = NA, padj = NA, gap.axis = NA, ..., tck = -0.02, minor = TRUE )
side |
an integer specifying which side of the plot the axis is to be drawn on. The axis is placed as follows: 1=below, 2=left, 3=above and 4=right. |
at |
The points at which tick-marks are to be drawn. Non-finite (infinite, NaN or NA) values are omitted. By default (when NULL) tickmark locations are computed using |
labels |
Set to |
tick |
See |
line |
See |
pos |
See |
outer |
See |
font |
See |
lty |
See |
lwd |
See |
lwd.ticks |
See |
col |
See |
col.ticks |
See |
hadj |
See |
padj |
See |
gap.axis |
See |
... |
Other graphical parameters that may apply to |
tck |
The length of tick marks as a fraction of the smaller of the width or height of the plotting region. If tck >= 0.5 it is interpreted as a fraction of the relevant side, so if tck = 1 grid lines are drawn. The default setting is (tck = -0.025). |
minor |
Whether or not to add smaller tick marks spaced equally between the larger tickmarks specified by the at argument. Tick length is set to |
## Not run: blank( xlim = c(0,50), ylim = c(0,100), bty ="l" ) axis_blank(1, at = seq(0,50,10)) axis_blank(2, at = seq(0,100,20)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.