plotQuote: Plots strings

View source: R/plotQuote.R

plotQuoteR Documentation

Plots strings

Description

Plots strings to a blank canvas. Used primarily for plotting quotes generated by findThoughts.

Usage

plotQuote(
  sentences,
  width = 30,
  text.cex = 1,
  maxwidth = NULL,
  main = NULL,
  xlab = "",
  ylab = "",
  xlim = NULL,
  ylim = NULL,
  ...
)

Arguments

sentences

Vector of sentence to plot.

width

Number of characters in each line.

text.cex

Sets the size of the text

maxwidth

Sets the maximum character width of the plotted responses rounding to the nearest word. Note that this may perform somewhat unexpectedly for very small numbers.

main

Title of plot.

xlab

Sets an x-axis label

ylab

Set a y-axis label

xlim

Sets the x-range of the plot.

ylim

Sets the y-range of the plot

...

Other parameters passed to the plot function

Details

A simple function which wraps sentences at width characters per line and plots the results.

See Also

findThoughts

Examples



thoughts <- findThoughts(gadarianFit,texts=gadarian$open.ended.response,
topics=c(1), n=3)$docs[[1]]
plotQuote(thoughts)


bstewart/stm documentation built on Jan. 3, 2024, 6:58 p.m.