Description Usage Arguments Examples
Set up a drawing layer on top of a ggplot.
1 |
plot |
The plot to use as a starting point. Can be a ggplot2 plot, an arbitrary grob or gtable, or a recorded base-R plot, as in [as_grob()]. |
xlim |
The x-axis limits for the drawing layer. |
ylim |
The y-axis limits for the drawing layer. |
clip |
Should drawing be clipped to the set limits? The default is no ("off"). |
1 2 3 4 5 6 | library(ggplot2)
p <- ggplot(mpg, aes(displ, cty)) +
geom_point() +
theme_minimal_grid()
ggdraw(p) + draw_label("Draft", colour = "#80404080", size = 120, angle = 45)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.