View source: R/server_ggplot.R
gantt_plot | R Documentation |
This function creates a Gantt plot with the help of ggplot and plotly.
gantt_plot(df, x, xend, split_var, title, position_label_y)
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. |
A Gantt plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.