Description Usage Arguments Examples
Places an arbitrary grob somewhere onto the drawing canvas. By default, coordinates run from 0 to 1, and the point (0, 0) is in the lower left corner of the canvas.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
grob |
The grob to place. |
x |
The x location of the grob. (Left side if |
y |
The y location of the grob. (Bottom side if |
width |
Width of the grob. |
height |
Height of the grob. |
scale |
Scales the grob relative to the rectangle defined by |
clip |
Set to "on" to clip the grob or "inherit" to not clip. Note that clipping doesn't always work as expected, due to limitations of the grid graphics system. |
hjust, vjust |
Horizontal and vertical justification relative to x. |
halign, valign |
Horizontal and vertical justification of the grob inside the box. |
1 2 3 4 |
Loading required package: ggplot2
Attaching package: 'cowplot'
The following object is masked from 'package:ggplot2':
ggsave
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.