plot.tag_co_occurrence: Plots a tag_co_occurrence Object

Description Usage Arguments Value

View source: R/tag_co_occurrence.R

Description

Plots a tag_co_occurrence object

Usage

 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",
  ...
)

Arguments

x

A tag_co_occurrence object.

cor

logical. If TRUE the correlation matrix is used for the network graph, otherwise the adjacency matrix is used.

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 node.color.

font.color

A color for the node and axis text.

point.size.range

A range to scale the points to if bar = FALSE.

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 TRUE a bar plot is used as the second plot, otherwise a bubble-dotplot is used.

type

The graph type (network & bar/dotplot). Choices are: "bar", "network", or "both" corresponding to the graph type to print.

...

ignored.

Value

Invisibly returns the network and dotplot/bar plot as a list.


trinker/termco documentation built on Jan. 7, 2022, 3:32 a.m.