Learn R Programming

textplot

This repository contains an R package which provides functionalities to easily visualise complex relations in texts. This is done by providing functionalities for displaying text co-occurrence networks, text correlation networks, dependency relationships as well as text clustering.

Installation

  • For regular users, install the package from your local CRAN mirror: install.packages("textplot")
  • For installing the development version of this package: remotes::install_github("bnosac/textplot")

Look to the documentation of the functions and run the examples to see what it can do.

help(package = "textplot")

Contributions

Feel free to join the effort of providing interesting text visualisations. Following these rules will make this process smooth

  • Only put packages in Imports which are either base or recommended packages
  • Other packages which you use should be put in Suggests
    • use requireNamespace("thepackage") if you need functions from thepackage
  • Update the gif at vignettes/textplot-examples.gif by making an example png of the output of your plot, put it in the dev folder and run the dev/make-textplot-examples.R code to update the gif shown in this README

Support in text mining

Need support in text mining? Contact BNOSAC: http://www.bnosac.be

Copy Link

Version

Install

install.packages('textplot')

Monthly Downloads

545

Version

0.2.2

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Jan Wijffels

Last Published

July 17th, 2022

Functions in textplot (0.2.2)

textplot_embedding_2d

Plot word embeddings in 2D
example_embedding

Example word embedding matrix
example_btm

Example Biterm Topic Model
example_embedding_clusters

Example words emitted in a ETM text clustering model
textplot_correlation_lines_attrs

Document/Term Correlation Plot graphical attributes
example_udpipe

Example annotation of text using udpipe
textplot_dependencyparser

Plot output of a dependency parser
textplot_correlation_lines

Document/Term Correlation Plot
textplot_correlation_glasso

Plot sparse term correlations as a graph structure
textplot_bar

Barplot of a frequency table using lattice
textplot_cooccurrence

Plot term cooccurrences as a network
plot.BTM

Plot function for a BTM object
textplot_bitermclusters

Plot biterm cluster groups