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 | stamp(p, color, alpha, label, family = dviz_font_family_bold,
fontface = "plain", clip = "on")
stamp_good(p, clip = "on")
stamp_phantom(p, clip = "on")
stamp_bad(p, clip = "on")
stamp_wrong(p, clip = "on")
stamp_ugly(p, clip = "on")
|
p |
The plot to stamp |
color |
The color of the stamp |
alpha |
Transparency level of the stamp |
label |
The text label used for the stamp |
family |
Font family |
fontface |
Font face |
clip |
Should figure be clipped (default is "on") |
1 2 3 4 5 6 7 8 | library(ggplot2)
p <- ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width,
color = factor(Petal.Width))) +
geom_point()
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.