grid.xaxis | R Documentation |
These functions create and draw an x-axis.
grid.xaxis(at = NULL, label = TRUE, main = TRUE, edits = NULL, name = NULL, gp = gpar(), draw = TRUE, vp = NULL) xaxisGrob(at = NULL, label = TRUE, main = TRUE, edits = NULL, name = NULL, gp = gpar(), vp = NULL)
at |
A numeric vector of x-value locations for the tick marks. |
label |
A logical value indicating whether to draw the labels
on the tick marks, or an expression or character vector which
specify the labels to use. If not logical, must be the same
length as the |
main |
A logical value indicating whether to draw the axis
at the bottom ( |
edits |
A gEdit or gEditList containing edit operations
to apply (to the children of the axis)
when the axis is first created and during redrawing
whenever |
name |
A character identifier. |
gp |
An object of class |
draw |
A logical value indicating whether graphics output should be produced. |
vp |
A Grid viewport object (or |
Both functions create an xaxis grob (a graphical object describing an
xaxis), but only grid.xaxis
draws the xaxis (and then only if draw
is TRUE
).
An xaxis grob. grid.xaxis
returns the value invisibly.
If the at
slot of an xaxis grob is not NULL
then
the xaxis will have the following children:
representing the line at the base of the tick marks.
representing the tick marks.
representing the tick labels.
If the at
slot is NULL
then there are no children
and ticks are drawn based on the current viewport scale.
Paul Murrell
Grid,
viewport
,
grid.yaxis
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.