plotSocCMap: Plotting a Social Cognitive Map

Description Usage Arguments Value Examples

Description

Plotting a Social Cognitive Map

Usage

1
plotSocCMap(soc.cmap, layoutType = "neato", ..., main = "Social map")

Arguments

soc.cmap

An object of class SocCMap, as an output of the SocCMap function

layoutType

Type of graph. See detail in RGraphViz. Can be 'neato', 'dot', 'twopi', 'circo', and 'fdp'. The default is 'neato'.

...

other graphical parameters

main

The title of the map. By default it is "Individual map - Agent's name"

Value

A plot

Examples

1
2
3
4
5
6
7
8
9
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)
scm <- SocCMap(edg.scm, my.project)
plotSocCMap(scm)
scm <- SocCMap(edg.scm, my.project, label = "name", shape = "plaintext")
plotSocCMap(scm)

cogmapr documentation built on Jan. 4, 2022, 5:06 p.m.