text_cuckoo: Add text in the plot

Description Usage Arguments Value Examples

View source: R/themes.R

Description

Adds text to the histograms or points.

Usage

1
text_cuckoo(lbl, font_family = "Tahoma", hjust = 1, ...)

Arguments

lbl

Column value to be displayed as label.

font_family

Font family. Defaulted to Tahoma.

hjust

Horizontal justification as Left Justified.

Value

Returns the text

Examples

1
2
3
4
5
6
census %>%
  ggplot(aes(x = State, color = State)) +
  geom_point(stat = "count", size = 8) +
  labs_cuckoo(title = "County Frequency by State", subtitle = NULL, xlab = "State") +
  text_cuckoo("..count..", color = "black", hjust = 0.5) +
  theme_cuckoo(font_family = "Tahoma",legend_position = "none", axis.text.x = element_text(angle = 45, hjust = 1))

neemtreeparrot/tidbitr documentation built on May 23, 2019, 1:31 p.m.