ggplot_text_lines: Plot Text Only

View source: R/ggplot_text_lines.R

ggplot_text_linesR Documentation

Plot Text Only

Description

Plot Text Only

Usage

ggplot_text_lines(
  x,
  max_rows = max(10, length(x)),
  size = 3,
  max_chars = 170,
  margins_cm = c(0, 0, 0, 0)
)

Arguments

x

vector of character representing the rows of text to be plotted from top to bottom

max_rows

number of rows to be prepared in the plot area. Increase/decrease this number to decrease/increase the line spacing

size

text size. Default: 3

max_chars

maximum number of characters to be used in each row. Longer lines that shortened to this number using shorten

margins_cm

vector of four numerics giving the bottom, left, top and top margins in cm, respectively. Default: c(0, 0, 0, 0)

Examples

ggplot_text_lines(paste(c("first", "second", "third"), "row"))


KWB-R/kwb.plot documentation built on Oct. 2, 2023, 10:16 p.m.