stamp: Stamp plots with a label, such as good, bad, or ugly.

Description Usage Arguments Examples

View source: R/stamp.R

Description

Stamp plots with a label, such as good, bad, or ugly.

Usage

 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")

Arguments

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")

Examples

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)

clauswilke/dviz.supp documentation built on Aug. 25, 2020, 2:12 a.m.