View source: R/rsyntax_convenience.r
tc_plot_tree | R Documentation |
A wrapper for the plot_tree
function, that can be used directly on a tCorpus.
tc_plot_tree(
tc,
...,
annotation = NULL,
sentence_i = 1,
doc_id = NULL,
pdf_file = NULL
)
tc |
a tCorpus |
... |
Arguments passed to |
annotation |
Optionally, the name of a column with an rsyntax annotation. |
sentence_i |
By default, plot_tree uses the first sentence (sentence_i = 1) in the data. sentence_i can be changed to select other sentences by position (the i-th unique sentence in the data). Note that sentence_i does not refer to the values in the sentence column (for this use the sentence argument together with doc_id) |
doc_id |
Optionally, the document id can be specified. If so, sentence_i refers to the i-th sentence within the given document. |
pdf_file |
Directly save the plot as a pdf file |
plots a dependency tree.
if (interactive())
tc_plot_tree(tc_sotu_udpipe, token, lemma, POS)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.