plot_word_score: Plot Bar Graph of Tf-Idf Scores for an Abstract

Description Usage Arguments Details See Also Examples

Description

plot_word_score Produces a bar graph of the words with the highest tf-idf scores.

Usage

1
plot_word_score(tfidf_vector, topn = 25, paper_title)

Arguments

topn

Number of top words to plot, default 25.

tf-idf_vector

A numeric vector of tf-idf weights that has the same number of columns as those in the abstracts DataFrame.

title

Title of the document that hte tf-idf vector belongs to.

Details

plot_word_score Given a vector of tf-idf weights, and the title of the document the vector belongs to, produces a bar plot of the words with the highest tf-idf weights.

See Also

get_pubmed_abstracts append_tfidf

Examples

1
plot_word_score(tfidf_vector,"Review of Current Machine Learning Approaches in Plant Biology",35)

jlee118/tmine documentation built on May 15, 2019, 9:14 p.m.