timelineG {timelineS} | R Documentation |
Faceted Timelines for Grouped Data
Description
Plots faceted timelines for grouped data.
Usage
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 |
theme |
Add theme elements if needed. |
other |
Add other elements if needed. |
Author(s)
Dahee Lee
See Also
Examples
### 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")
[Package timelineS version 0.1.1 Index]