timelineG: Faceted Timelines for Grouped Data

Description Usage Arguments Author(s) See Also Examples

View source: R/timelineG.R

Description

Plots faceted timelines for grouped data.

Usage

1
2
timelineG(df, start, end, names, phase = NA, group1 = NA, group2 = NA,
          width = 2, color = "grey", theme = NULL, other = NULL)

Arguments

df

Data frame containing start dates, end dates, groups, phases, and names for each timeline.

start

Column in df for start dates.

end

Column in df for end dates.

names

Column in df for names of each timeline

phase

Column in df for phases.

group1

Column in df for groups to be used as the rows of the tabular display. Default is NA.

group2

Column in df for groups to be used as the columns of the tabular display. Default is NA.

width

Width of each timeline. Default is 2.

color

Color of timelines, only used when phase is not provided.

theme

Add theme elements if needed.

other

Add other elements if needed.

Author(s)

Dahee Lee

See Also

timelineS

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
### Plot timelines row-grouped by "Country"
timelineG(df = life_country, start = "Start", end = "End", names = "Name",
phase = "Phase", group1 = "Country")

### Plot timelines row-grouped by "Country" and column-grouped by "Gender"
timelineG(df = life_country, start = "Start", end = "End", names = "Name",
phase = "Phase", group1 = "Country", group2 = "Gender")

 ### Plot timelines, no group
timelineG(df = life_country, start = "Start", end = "End", names = "Name",color = "grey")

timelineS documentation built on May 2, 2019, 8:57 a.m.