Prepare general/non-statistical data for plotting with gglyph::geom_glyph().
     
    
    Usage
    process_data_general(data, from = "from", to = "to", group = NULL)
 
     
    
    Arguments
- data
 
A DataFrame or tibble containing the input data to be processed.
 
- from
 
A string indicating the column name for the start nodes.
 
- to
 
A string indicating the column name for the end nodes.
 
- group
 
A string indicating the column name for the grouping variable.
 
 
    
    Value
    A DataFrame with the preprocessed data that is to be passed to gglyph::geom_glyph().
     
    
    Examples
    data(sipri_milex_1995_2023)
# For non-grouped data
processed_data <- process_data_general(
  data = sipri_milex_1995_2023,
  from = "from",
  to = "to"
)
# For grouped data
processed_data <- process_data_general(
  data = sipri_milex_1995_2023,
  from = "from",
  to = "to",
  group = "group"
)