Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


stringb (version 0.1.17)

plot.character: function for plotting text

Description

function for plotting text

Usage

# S3 method for character
plot(
  x,
  y = NULL,
  col = "grey",
  border = "grey",
  pattern = NULL,
  pattern_col = "#ED4C4C",
  ...
)

Arguments

x

object of class rtext

y

either NULL or a data.frame with columns "start", "end", "line"

col

color for text

border

border color for text

pattern

regular expression to be searched in text and marked up in plot

pattern_col

color for text to be marked up via pattern or y option

...

further parameters passed through to text_locate