timeCoin: Networked coincidences.

View source: R/timeline.R

timeCoinR Documentation

Networked coincidences.

Description

timeCoin produces a timeCoin object.

Usage

timeCoin(periods, name = "name", start = "start", end = "end", group = NULL,
         text = NULL, main = NULL, note = NULL, info = NULL, 
         events = NULL, eventNames = "name", eventPeriod = "period",
         eventTime = "date", eventColor = NULL, eventShape = NULL,
         cex = 1, language = c("en","es","ca"), dir = NULL)

Arguments

periods

a data frame with at least three vectors of name, start and end of the periods.

name

name of the vector with names in the periods data frame.

start

name of the vector with starts in the periods data frame.

end

name of the vector with ends in the periods data frame.

group

name of the vector with groups in the periods data frame.

text

name of the vector with html text in the periods data frame.

main

upper title of the graph.

note

lower title of the graph.

info

name of the vector with information to display in a panel in the periods data frame.

events

a data frame of events included into the periods with three columns: event name, periodParent and eventTime

eventNames

name of the vector with names in the events data frame.

eventPeriod

name of the vector with period names in the events data frame.

eventTime

name of the vector with time points in the events data frame.

eventColor

name of the vector with color criteria in the events data frame.

eventShape

name of the vector with shape criteria in the events data frame.

cex

number indicating the amount by which plotting text should be scaled relative to the default. Default = 1.

language

a character vector (es=spanish; en=english; ca=catalan).

dir

a "character" string representing the directory where the web files will be saved.

Value

Object of class timeCoin.

Author(s)

Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/

Examples

# Database of the classical sociologists.
# Only periods
data(sociologists)
timeCoin(sociologists, "name", "birth", "death", "school")

# Periods and events
data(works)
timeCoin(sociologists, "name", "birth", "death", "school",
         events=works, eventNames="label", eventPeriod="author", eventTime="date")

netCoin documentation built on Oct. 18, 2024, 5:10 p.m.