SocCMap {cogmapr}R Documentation

Social Cognitive Mapping

Description

Formatting the data for plotting an Social Cogntive Map

Usage

SocCMap(data.edges.soc, project, label = "num", minlen = 1,
  fontsize = 16, shape = "box")

Arguments

data.edges.soc

A data.frame as produced by the EdgSocCMap function

project

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

label

A character string that defines the text that will be print in the variables (vertex) of the cognitive maps. It can be "num", "name" or "numname" (which is of the form "NUM - Name"). The default is "num"

minlen

A graphical parameter that defines a relative lenght between the variable of the cognitive maps. See help from RGraphViz package.

fontsize

The fontsize of vertices (concepts), in r-base plot

shape

The shape of the verices (concepts), in r-base plot

Value

a 'SocCMap' object, a list containing various information that could be use for plotting an Individual Cognitive Map. The most important elements are :

"vertex"

A list of information on Cognitive Map's variables (i.e. vertices)

"edg"

A list of information about relationships

##'

"graph"

A graphNEL object

"eAttrs"

A list of graphical attributes of edges

"nAttrs"

A list of graphical attributes of nodes (vertices)

"gAttrs"

A list of graphical attributes of the whole graph

Examples

project_name <- "a_new_project"
main_path <- paste0(system.file("testdata", package = "cogmapr"), '/')
my.project <- ProjectCMap(main_path, project_name)

edg.scm <- EdgSocCMap(my.project, min.weight=6, weighted.icm=TRUE)
SocCMap(edg.scm, my.project)

[Package cogmapr version 0.9.1 Index]