ncr_comp {BibPlots} R Documentation

## Create a spectrogram using data from the free software CRExplorer

### Description

Provide the contents of CSV files from the 'CRExplorer' in data frames, e.g. df1 and df2, and the function call ncr_comp(df1, df2, py1, py2) creates a plot with both sets of NCR values. Here, py1 and py2 are the lowest and highest publication year to be used in the plot. The function ncr_comp takes some optional arguments to modify its behaviour, see arguments and details.

### Usage

ncr_comp(
df1,
df2,
py1,
py2,
col_cr = "red",
smoothing = TRUE,
par_pch = 20,
...
)


### Arguments

 df1 data frame 1 with reference publication year and number of cited references, e. g., as exported from the CRExplorer (File > Export > CSV (Graph)). df2 data frame 2 with reference publication year and number of cited references, e. g., as exported from the CRExplorer (File > Export > CSV (Graph)). py1 determines lowest reference publication year which should be shown in the graph. py2 determines highest reference publication year which should be shown in the graph. col_cr character color name value to determine color of the line and points of the number of cited references (optional parameter). The default value is "red". smoothing boolean variable (optional parameter) which determines if the lines of the spectrogram are smoothed or not. (T: yes apply smoothing, F: no do not apply smoothing). The default value is T. par_pch integer value to set the point type (optional parameter). The default value is 20. ... additional arguments to pass to the plot, points, and lines functions.

### Details

ncr_comp <- function(df1, df2, py1, py2, col_cr = "red", smoothing = TRUE, par_pch = 20, ...) Only the arguments df1, df2, py1, and py2 are necessary. All other aruments are optional. Please use the function legend to add a user-defined legend The solid curve represents the data from df1 and the dotted curve represents the data from df2.

Literature:

- Thor, A., Bornmann, L., Marx, W., Haunschild, R., Leydesdorff, L., & Mutz, Ruediger (2017). Website of the free software 'CRExplorer', http://www.crexplorer.net

[Package BibPlots version 0.0.8 Index]