plot_modularity_timeseries function

Function to plot graph modularity timeseries

Function to plot graph modularity timeseries

This function plots and returns annual graph modularity values for predefined corpora (representing communities). See compute_modularity for details on modularity calculation.

plot_modularity_timeseries(gr_arg, mini = -1, maxi = -1, cesure = -1, window = 1, modularity_function = "normal")

Arguments

  • gr_arg: Citation graph
  • mini: Start year of the time window
  • maxi: End year of the time window
  • cesure: Year before which values should be cumulated. Default value is -1, which indicates that each year in the time window should be plotted.
  • window: The temporal sliding window size over which modularity should be computed.
  • modularity_function: Modularity function to be used for the calculation: "custom" indicates that compute_custom_modularity will be used, whereas "normal" indicates that compute_modularity will be used.

Returns

Returns a dataframe containing year and annual modularity value.

Author(s)

Christian Vincenot (christian@vincenot.biz)

See Also

compute_modularity, compute_custom_modularity

Examples

labels<-c("Corpus1","Corpus2") # Build a bibliographical dataset from Scopus exports db<-create_bibliography(corpora_files=c(tempfi1,tempfi2), labels=labels, keywords=NA) # Build graph gr<-build_graph(db=db,small.year.mismatch=TRUE, attrs=c("Corpus","Year","Authors"), nb.cores=1) # Compute Modularity timeseries plot_modularity_timeseries(gr, 1990, 2018)
  • Maintainer: Christian Vincenot
  • License: GPL (>= 2)
  • Last published: 2020-04-19

Useful links