insert_xaxis_grob | R Documentation |
The function insert_xaxis_grob()
inserts a grob at the top or bottom of the plot panel in a ggplot2 plot.
insert_xaxis_grob(
plot,
grob,
height = grid::unit(0.2, "null"),
position = c("top", "bottom"),
clip = "on"
)
insert_yaxis_grob(
plot,
grob,
width = grid::unit(0.2, "null"),
position = c("right", "left"),
clip = "on"
)
plot |
The plot into which the grob will be inserted. |
grob |
The grob to insert. This will generally have been obtained via |
height |
The height of the grob, in grid units. Used by |
position |
The position of the grob. Can be |
clip |
Set to "off" to turn off clipping of the inserted grob. |
width |
The width of the grob, in grid units. Used by |
For usage examples, see axis_canvas()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.