This function creates a Gantt plot with the help of ggplot and plotly.

gantt_plot(df, x, xend, split_var, title, position_label_y)

Arguments

df

A data frame containing the data to be plotted.

x

A string specifying the column name to be used as the x-axis variable.

xend

A string specifying the column name to be used as the end of the x-axis variable.

split_var

A string specifying the column name to be used as the splitting variable.

title

A string specifying the title of the plot.

position_label_y

A string specifying the position of y-axis labels.

Value

A Gantt plot.