instaquote: Generate a ggplot of a quote

Description Usage Arguments Value Examples

View source: R/instaquote.R

Description

Uses 'ggtext::geom_textbox()' and 'ggplot2::theme_void()' to generate a simple quote. Quotes can be posted to social media or within rmarkdown.

Usage

1
2
3
4
5
6
instaquote(
  text,
  bg_color = "#56B4E9",
  text_color = "white",
  caption = "gospelanalysis.com"
)

Arguments

text

Text you want to pass in. use generate_text().

bg_color

Plot background color, default: ggthemes::palette_pander(n = 1)

text_color

Color of text. default: white.

Value

ggplot2 object

Examples

1
2
txt <- insta_text("hello world")
instaquote(txt)

bryanwhiting/instaquote documentation built on Dec. 19, 2021, 11:51 a.m.