Learn R Programming

cogmapr (version 0.9.2)

GraphIndicators: Graph indicators of a social cognitive map

Description

Compute the graph indicators of a Social Cognitive Map (at graph level)

Usage

GraphIndicators(project, filters = NULL, units = "all", weighted.icm = FALSE)

Arguments

project

A QDA project, a list as generated by the ProjectCMap function.

filters

A list of named strings that will filter the relationships showed in the SCM. e.g. =list(coding_class = "A_coding_class", document_part = "A_document_part")=. To date, these filters are linked to the nature of relationships.

units

A string vector giving the names of the units (i.e. classes linked to documents) that will be include in the SCM. It is a second type of filter.

weighted.icm

A boolean. If FALSE, the weight of the relationships in the ICM will be fixed to 1.

Value

A data frame with the value of some indicators linked to the map

Details

Compute some indicators from the graph theory and applies them to a Social Cognitive Map :

  • dimension : the number of vertices

  • n_transmitter : the number of transmitter vertices

  • n_receiver : the number of receiver vertices

  • n_ordinary : the number of ordinary vertices (transmitter & receiver)

  • connections : the number of edges

  • density : ...

  • complexity_a : ....

  • complexity_b : ...

  • hierarchy : ...

(== add formulae ==)

Source : Oezesmi & Oezesmi, 2004

Examples

Run this code
# NOT RUN {
project_name <- "a_new_project"
main_path <- paste0(system.file("testdata", package = "cogmapr"), '/')
my.project <- ProjectCMap(main_path, project_name)

GraphIndicators(my.project)
GraphIndicators(my.project, units = "Belgium")
GraphIndicators(my.project, units = "Qu<U+00E9>bec")
# }

Run the code above in your browser using DataLab