KDViz: Knowledge Domain Visualization

Description Usage Arguments Details Value Author(s) Examples

View source: R/KDViz.R

Description

Knowledge domain visualization using mpa co-words method as the word clustering method and network graphs with D3.js library as visualization tool.

Usage

1
KDViz(groupDTM, group, graph = FALSE, export = TRUE)

Arguments

groupDTM

a list of matrices from grouped terms and the documents in which they appear, obtained through GroupDTM.

group

an integer specifying the group of words that is want to be visualized.

graph

logical. If TRUE, a preview of the network graph from the chosen group will be plotted in R internal viewer.

export

logical. If TRUE, an html document will be saved withe the graph network using D3.js library.

Details

This function returns a forceNetwork from networkD3 package only if graph argument is TRUE. By default, it will export an html document with a network graph ready for navigate in a web browser.

Value

If graph argument is TRUE, a forceNetwork will be returned.

Author(s)

Andres Palacios anfpalacioscl@unal.edu.co

Examples

1
2
3
4
5
6
7
data("KDCorpus")
mpaWords <- matrix.corpus.mpa(KDCorpus, fmin = 10, cmin = 1)
myKDSummary <- KDSummary(matrix.mpa = mpaWords, groupSize = 10)
data("KDDTM")
myWordGroupDTM <- GroupDTM(dtm = KDDTM, kdSummary = myKDSummary)

KDViz(groupDTM = myWordGroupDTM, group = 1, export = TRUE)

Example output



KDViz documentation built on May 1, 2019, 6:34 p.m.

Related to KDViz in KDViz...