plot_modularity_timeseries {Diderot} | R Documentation |
Function to plot graph modularity timeseries
Description
This function plots and returns annual graph modularity values for predefined corpora (representing communities). See compute_modularity
for details on modularity calculation.
Usage
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 |
Value
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)