tplot: Temporal distribution of meltt output data.

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/tplot.R

Description

tplot provides a histogram of integrated data that plots the temporal distribution of duplicate and unique entries

Usage

1
tplot(object, time_unit = "months", free_scale = TRUE)

Arguments

object

object of class meltt.

time_unit

character specifying the temporal bin: "days", "weeks", "months", and "years". Default = "months".

free_scale

boolean if duplicates should be presented on a different scale from unique entries. A free scale makes it easier to assess the number of duplicate entries and from which input data they emerge, given that there can be relatively few at times. Default = TRUE.

Details

tplot generates a temporal histogram that identifies unique entries after duplicates are removed and a reverse temporal histogram charting the distribution of duplicate entries. The function provides a concise summary of the integration output across the input time period presented in a relevant unit.

Value

Returns a histogram plot where the y-axis is a frequency capturing the total number of events for that time period, and the x-axis is time.

Author(s)

Karsten Donnay and Eric Dunford.

References

Karsten Donnay, Eric T. Dunford, Erin C. McGrath, David Backer, David E. Cunningham. (2018). "Integrating Conflict Event Data." Journal of Conflict Resolution.

See Also

meltt, mplot

Examples

1
2
3
4
5
6
7
8
9
data(crashMD)
output <- meltt(crash_data1, crash_data2, crash_data3,
                      taxonomies = crash_taxonomies, twindow = 1, spatwindow = 3)

# Free scale
tplot(output, time_unit = "days")

# Relative scale
tplot(output, time_unit = "days", free_scale = FALSE)

css-konstanz/meltt documentation built on July 8, 2018, 10:15 p.m.