Learn R Programming

cogmapr (version 0.9.5)

plotIndCMap: Plotting an Individual Cognitive Map

Description

Plotting an Individual Cognitive Map

Usage

plotIndCMap(
  ind.cmap,
  layoutType = "neato",
  main = paste("Individual map -", ind.cmap[["agent"]][["name"]]),
  ...
)

Value

A plot

Arguments

ind.cmap

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

layoutType

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

main

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

...

other graphical parameters

Examples

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

icm <- IndCMap(my.project, 1)

plotIndCMap(icm)

Run the code above in your browser using DataLab