Description Usage Arguments Value Examples
Get the coordinates of the vertices of a Cognitive Map. The output of this function can be useful for plotting Cognitive Maps in a personalize ways (as with ggplot2 as done by the ggCMap function of this package)
1 | coordCMap(soc.cmap, layoutType = "neato")
|
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'. |
A data frame with three variable :
The number of the vertex)
The x coordinate of the vertex
The y coordinate of the vertex
1 2 3 4 5 6 7 8 | 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, label = "name", shape = "plaintext")
coordCMap(scm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.