ganttChart | R Documentation |
A flexible Gantt Chart.
ganttChart( df, task_order = TRUE, mstone_add = task_order, mstone_spacing = 1, mstone_lwd = 2, axes = TRUE, mstone_font = 2, lighten_done = 0 )
df |
a data.frame (see details). |
task_order |
a logical. Should the tasks be ordered? See below for more details. |
mstone_add |
Should milestones be added? |
mstone_spacing |
spacing between milestones (expressed as figure unit). |
mstone_lwd |
lines width for the milestone. |
axes |
a logical. Should the axes be added? |
mstone_font |
font of milestone (ignore of |
lighten_done |
percentage use to lighten done task (see |
Argument df
should be a data frame with the following columns (in any
order):
milestone
: milestones names,
due
: due date (will be converted into a date with as.Date()
),
start
: start date (will be converted into a date with as.Date()
),
task
: tasks names.
It might as well include any of the following optional columns:
done
: vector of logicals indicating whether the task if completed
col
: to custom the color of the tasks.
David Beauchesne, Kevin Cazelles
https://insileco.github.io/2017/09/20/gantt-charts-in-r/
ff <- ganttChart(dfGantt, mstone_lwd = 3, mstone_spacing = 0.6, lighten_done = 80 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.