print_color_coded_pdf: Save a color-coded PDF

Description Usage Arguments

View source: R/print_color_coded_pdf.R

Description

Write text to a PDF with words color-coded according to FREX scores.

Usage

1
2
print_color_coded_pdf(raw_text, frex, filename, stemmed = TRUE,
  colors = c("greyscale", "heat"), pctile_cuts = c(95, 98, 99))

Arguments

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 frex stemmed?

colors

One of c("heat", "greyscale") indicating color scheme for color coding.

pctile_cuts

An integer of length 3 containing three numbers between 1 and 99 indicating the percentile cut-points for color-coding.


dtburk/texanaaid documentation built on Nov. 12, 2019, 9:44 p.m.