Learn R Programming

cogmapr (version 0.9.2)

ggCMap: Plot a social cognitive map using ggplot2

Description

Plotting the a social cognitive map using ggplot2

Usage

ggCMap(
  data,
  size.concepts = 4,
  size.labels = 4,
  size.edges = 4,
  size.arrows = 4,
  alpha.arrows = 0.3
)

Arguments

data

A list, the output of the 'data.ggCMap' function, containing all useful vertex and edge information for the cognitive maps.

size.concepts

Size of the dot linked to vertices

size.labels

Size of the labels of vertices

size.edges

Size of the labels of the weight of edges

size.arrows

Size of arrows (head)

alpha.arrows

The transparency of arrows.

Value

A ggplot of a social cognitive map

Details

Plotting the a social cognitive map using ggplot2

Examples

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

df.scm <- data.ggCMap(my.project, edge.filter = "4")
ggCMap(df.scm)
# }

Run the code above in your browser using DataLab