Allows the ability to quickly filter plottable data by column or directly plot with ggplot2/plotly.

plot_planner(
  planner,
  by = "tasks",
  data_only = FALSE,
  plot_type = NA,
  interactive = FALSE,
  ...
)

Arguments

planner

Planner data returned from read_planner()

by

Column to filter planner data by. Either: "tasks", "checklists", "priority", "late", "assigned_to", or "completed_by"

data_only

If TRUE, makes function return plottable data as a tibble.

plot_type

Character of plot type. Supports: NA, basic.

interactive

If TRUE, returns a plotly interactive plot.

...

Extra arguments for ggplot labs()

Value

Either plottable data as a tibble, ggplot object, or plotly object.

Examples

if (FALSE) { ## Basic Usage plot_planner(plan_xlsx, by = "checklists") ## Filtered Plottable Plan Data plot_planner(plan_xlsx, by = "priority", data_only = TRUE) ## Extended with ggplot2 plot_planner( plan_xlsx, by = "tasks", plot_type = "basic", title = "Tasks Progress" ) + geom_bar() + theme_bw() ## Extended with plotly plot_planner( plan_xlsx, by = "checklists", interactive = TRUE, title = "Interactive Donut Chart" ) }