Skip to contents

A dataset designed for creating arc diagrams, typically used to visualize relationships or flows between entities.

Usage

data(arcDiagram)

Format

A data frame with 21 rows and 4 variables:

source

Character. The starting node or entity in a relationship.

target

Character. The ending node or entity in a relationship.

weight

Numeric. The strength or magnitude of the relationship between source and target.

group

Character. A grouping variable for the relationships, often used for coloring arcs.

Examples

data(arcDiagram)
str(arcDiagram)
#> 'data.frame':	21 obs. of  4 variables:
#>  $ source: chr  "Alice" "Alice" "Bob" "Bob" ...
#>  $ target: chr  "Bob" "Jack" "Diana" "Henry" ...
#>  $ weight: num  7.5 3.1 1.1 3.7 3.7 2.8 3.8 3.8 2.9 1.9 ...
#>  $ group : chr  "Family" "Family" "Family" "Family" ...
head(arcDiagram)
#>    source target weight  group
#> 1   Alice    Bob    7.5 Family
#> 2   Alice   Jack    3.1 Family
#> 3     Bob  Diana    1.1 Family
#> 4     Bob  Henry    3.7 Family
#> 5     Bob   Jack    3.7 Family
#> 6 Charlie  Frank    2.8 Family
summary(arcDiagram$weight)
#>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
#>   1.100   2.700   3.700   4.329   6.300   9.800