Learn R Programming

Diderot (version 0.13)

plot_publication_curve: Function to plot publication count timeseries

Description

This function plots and returns the annual number of publications.

Usage

plot_publication_curve(gr, labels, k = 1)

Arguments

gr

Citation graph

labels

Labels (i.e. names) of the two corpora featured in the graph.

k

Text font size (multiplier of cex values)

Value

Returns a dataframe containing year and annual publication count for each corpus and both together.

See Also

compute_citation_ranking

Examples

Run this code
# NOT RUN {
labels<-c("Corpus1","Corpus2")

# Build a bibliographical dataset from Scopus exports
db<-create_bibliography(corpora_files=c(tempfi1,tempfi2), 
                        labels=labels, keywords=NA)
# }
# NOT RUN {
# Build graph
gr<-build_graph(db=db,small.year.mismatch=TRUE, attrs=c("Corpus","Year","Authors"), nb.cores=1)

# Publication curve
plot_publication_curve(gr,labels)

# }

Run the code above in your browser using DataLab