plot_heterocitation_timeseries: Function to plot the heterocitation share and heterocitation...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Diderot.R

Description

This function plots and returns annual heterocitation share and heterocitation balance values.

Usage

1
plot_heterocitation_timeseries(gr_arg, labels, mini = -1, maxi = -1, cesure = -1)

Arguments

gr_arg

Citation graph

labels

Labels (i.e. names) of the two corpora featured in the 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.

Value

Returns a dataframe with year and annual values for heterocitation share (sx1, sx2 and sxall for corpus A and B and global resp.) and heterocitation balance (dx1, dx2 and dxall for corpus A and B and global resp.).

Author(s)

Christian Vincenot (christian@vincenot.biz)

See Also

precompute_heterocitation, heterocitation

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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)

# Heterocitation timeseries
gr<-precompute_heterocitation(gr,labels, 1990, 2018)
plot_heterocitation_timeseries(gr, labels, 1990, 2018)

Diderot documentation built on April 19, 2020, 4:16 p.m.