Description Usage Arguments Examples
Stamp plots with a label, such as good, bad, or ugly.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | stamp(
p,
label,
color = "black",
alpha = 1,
vjust = 1.1,
hjust = 1,
size = 14,
family = "",
fontface = "bold",
clip = "on",
colour
)
stamp_good(p, ...)
stamp_bad(p, ...)
stamp_wrong(p, ...)
stamp_ugly(p, ...)
|
p |
The plot to stamp |
label |
The text label used for the stamp |
color, colour |
The color of the stamp |
alpha |
Transparency level of the stamp |
hjust, vjust |
Horizontal and vertical adjustment of the label |
size |
Font size |
family |
Font family |
fontface |
Font face |
clip |
Should figure be clipped (default is "on") |
... |
Arguments handed off to |
1 2 3 4 5 6 7 | library(ggplot2)
p <- ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width)) +
geom_point(aes(color = factor(Petal.Width)))
stamp_bad(p + guides(color = "none"))
stamp_ugly(p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.