Learn R Programming

wordgraph (version 0.1.0)

Graph Functionality of Free Associated Words

Description

Functions that help less experienced R users to make graph analysis for free associated words, or more generally for repeated nominal data for which a undirected graph analysis is meaningful. By corresponding to each word its centrality, it is possible to apply standard quantitative analysis methods in order to associate word selection with other variables. The functions are implemented with the aid of the 'tibble', 'tidygraph', 'ggraph' and 'ggplot2' packages. Supported centrality functions are centrality_alpha(), centrality_authority(), centrality_betweenness(), centrality_closeness(), centrality_pagerank(), centrality_eigen(). A data set is included.

Copy Link

Version

Install

install.packages('wordgraph')

Monthly Downloads

14

Version

0.1.0

License

GPL (>= 2)

Last Published

July 1st, 2020

Functions in wordgraph (0.1.0)

find.word.code.in.wordreport

Find the index of the word
add.centrality.variables.to.data.frame

Main function of the package. Creates the graphs and adds the centrality variables to the data frame.
create.centrality.variable

Return a vector with the centrality scores
get.all.word.pairs.frequency

Count all combinations between each concecutive pair of variables.
freq.of.all.combinations.df.numeric

Special case of freq.of.all.combinations.df
create_a_new_unique_var_name

Provides variable name that is not already exists in the data frame data
freq.of.all.combinations.df

Count all combinations between the values of column1 and column2.
get.graph.1.n.group.centrality.with.function

Creates a ggraph object.
get.all.graphs

Creates one ggraph object for each available centrality functions.
prepare.file

Remove all the multiple blanks of the selected R output, in order to copied correctly to LibreOffice Calc.
get_label_from_columnrow

Returns the label of a value.
graph_plot

Plots a graph.
freeassociationdata

Free association data to demonstrate wordgraph package functionality.
get.word.centrality

Returns the centrality of the word.
get.word.combinations.as.tbl_graph

Calculate all word pairs frequencies.