View source: R/print_color_coded_pdf.R
Write text to a PDF with words color-coded according to FREX scores.
| 1 2 | print_color_coded_pdf(raw_text, frex, filename, stemmed = TRUE,
  colors = c("greyscale", "heat"), pctile_cuts = c(95, 98, 99))
 | 
| raw_text | A character vector containing the text in human-readable format (with punctuation, case, etc) | 
| frex | A character vector of words sorted in decreasing order of FREX score. | 
| filename | Filepath to which output should be saved. | 
| stemmed | Are the words in  | 
| colors | One of  | 
| pctile_cuts | An integer of length 3 containing three numbers between 1 and 99 indicating the percentile cut-points for color-coding. | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.