Description Usage Arguments Value
View source: R/tag_co_occurrence.R
Plots a tag_co_occurrence object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## S3 method for class 'tag_co_occurrence'
plot(
x,
cor = FALSE,
edge.width.range = c(0.5, 4),
node.size.range = c(0.5, 10),
edge.color = "gray80",
node.color = "orange",
bar.color = node.color,
font.color = "gray55",
point.size.range = TRUE,
bar.font.color = ifelse(bar, "gray96", bar.color),
background.color = NULL,
bar.font.size = TRUE,
node.font.size = 3,
digits = 1,
min.edge.cutoff = 0.15,
plot.widths = c(0.6, 0.4),
bar = FALSE,
type = "both",
...
)
|
x |
A tag_co_occurrence object. |
cor |
logical. If |
edge.width.range |
A range of widths to rescale the edges to. |
node.size.range |
A range of sizess to rescale the nodes to. |
edge.color |
A color for the edges. |
node.color |
A color for the nodes. |
bar.color |
A color for the bar fill; defaults to |
font.color |
A color for the node and axis text. |
point.size.range |
A range to scale the points to if
|
bar.font.color |
A color for the bar/dotplot (mean co-occurrences). |
background.color |
The plot background color. |
bar.font.size |
A font size for the bar/dotplot (mean co-occurrences). Default tries to calculate based on number of bars. |
node.font.size |
The size for the node labels. |
digits |
The number of digits to print for bar/dotplot font (mean co-occurrences). |
min.edge.cutoff |
A minimum value to use as a cut-off in the network plot. If a value in the correlation/adjacency matrix is below this value, no edge will be plotted for the tag (node) connection. |
plot.widths |
A vector of proportions of length 2 and totalling 1 corresponding to the relative width of the network and bar/dotplot. |
bar |
logical. If |
type |
The graph type (network & bar/dotplot). Choices are:
|
... |
ignored. |
Invisibly returns the network and dotplot/bar plot as a list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.