Description Usage Arguments Author(s) See Also Examples
Plots faceted timelines for grouped data.
1 2 |
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. |
Dahee Lee
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.