plotSocCMap {cogmapr} | R Documentation |
Plotting a Social Cognitive Map
Description
Plotting a Social Cognitive Map
Usage
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
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)
[Package cogmapr version 0.9.3 Index]