plotQuote | R Documentation |
Plots strings to a blank canvas. Used primarily for plotting quotes
generated by findThoughts
.
plotQuote(
sentences,
width = 30,
text.cex = 1,
maxwidth = NULL,
main = NULL,
xlab = "",
ylab = "",
xlim = NULL,
ylim = NULL,
...
)
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 |
A simple function which wraps sentences at width
characters per line
and plots the results.
findThoughts
thoughts <- findThoughts(gadarianFit,texts=gadarian$open.ended.response,
topics=c(1), n=3)$docs[[1]]
plotQuote(thoughts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.