plot.conceptmap {comato} | R Documentation |
Plotting a conceptmap
Description
plot
plots a concept map. Includes finding a good layout based on communities and a circular layout.
Is especially suited for plotting larger concept maps, in particular amalgamations.
Usage
## S3 method for class 'conceptmap'
plot(x, edge.labels = T, max.label.len = 25,
scale = 1, layout = NULL, ...)
Arguments
x |
A conceptmap object. |
edge.labels |
If TRUE, the labels of edges will be plotted as well. |
max.label.len |
The maximal length of labels (in characters) that are plotted completely. Longer labels will be shortend by "...". |
scale |
Overall scaling factor that is applied to the plot. |
layout |
If not NULL, must either be one of "fruchterman.reingold", "kamada.kawai", "spring" or "reingold.tilford" or a numeric matrix. If it is a string, the corresponding layouting algorithm of the igraph package will be called. If it is a numeric matrix, it must contain a row for each concept and two columns that determine the x and y coordinates of this concept. Then this layout will be used directly. |
... |
- |
Value
-
Examples
#Create concept map from a random graph
require("igraph")
g1 = set.vertex.attribute(erdos.renyi.game(5, 0.7, type="gnp"), "name", value=1:5)
E(g1)$name <- rep("", length(E(g1)))
plot(conceptmap(g1), edge.labels=FALSE, layout="kamada.kawai")