| dotted_chart {processmapR} | R Documentation | 
Dotted Chart
Description
A dotted chart is a graph in which each activity instance is displayed with a point (dot). The x-axis refers to the time aspect, while the y-axis refers to cases.
Usage
dotted_chart(
  log,
  x = c("absolute", "relative", "relative_week", "relative_day"),
  sort = c("auto", "start", "end", "duration", "start_week", "start_day"),
  color = NULL,
  units = c("auto", "secs", "mins", "hours", "days", "weeks"),
  add_end_events = FALSE,
  scale_color = bupaR::scale_color_discrete_bupaR,
  plotly = FALSE,
  eventlog = deprecated()
)
## S3 method for class 'eventlog'
dotted_chart(
  log,
  x = c("absolute", "relative", "relative_week", "relative_day"),
  sort = c("auto", "start", "end", "duration", "start_week", "start_day"),
  color = NULL,
  units = c("auto", "secs", "mins", "hours", "days", "weeks"),
  add_end_events = FALSE,
  scale_color = bupaR::scale_color_discrete_bupaR,
  plotly = FALSE,
  eventlog = deprecated()
)
## S3 method for class 'activitylog'
dotted_chart(
  log,
  x = c("absolute", "relative", "relative_week", "relative_day"),
  sort = c("auto", "start", "end", "duration", "start_week", "start_day"),
  color = NULL,
  units = c("auto", "secs", "mins", "hours", "days", "weeks"),
  add_end_events = FALSE,
  scale_color = bupaR::scale_color_discrete_bupaR,
  plotly = FALSE,
  eventlog = deprecated()
)
## S3 method for class 'grouped_eventlog'
dotted_chart(
  log,
  x = c("absolute", "relative", "relative_week", "relative_day"),
  sort = c("auto", "start", "end", "duration", "start_week", "start_day"),
  color = NULL,
  units = c("auto", "secs", "mins", "hours", "days", "weeks"),
  add_end_events = FALSE,
  scale_color = bupaR::scale_color_discrete_bupaR,
  plotly = FALSE,
  eventlog = deprecated()
)
## S3 method for class 'grouped_activitylog'
dotted_chart(
  log,
  x = c("absolute", "relative", "relative_week", "relative_day"),
  sort = c("auto", "start", "end", "duration", "start_week", "start_day"),
  color = NULL,
  units = c("auto", "secs", "mins", "hours", "days", "weeks"),
  add_end_events = FALSE,
  scale_color = bupaR::scale_color_discrete_bupaR,
  plotly = FALSE,
  eventlog = deprecated()
)
Arguments
log | 
 
  | 
x | 
 
  | 
sort | 
 
  | 
color | 
 
  | 
units | 
 
  | 
add_end_events | 
 
  | 
scale_color | 
 
  | 
plotly | 
 
  | 
eventlog | 
Details
When setting sort to "auto", the ordering of cases is done automatically, based on the specified value of x:
-  
x = "absolute":sort = "start", -  
x = "relative":sort = "duration", -  
x = "relative_week":sort = "start_week", -  
x = "relative_day":sort = "start_day". 
When setting units to "auto", the time units on the x-axis is done automatically, based on the specified value of x:
-  
x = "absolute":units = "weeks", -  
x = "relative":units = "weeks", -  
x = "relative_week":units = "secs", -  
x = "relative_day":units = "secs". 
Methods (by class)
-  
dotted_chart(eventlog): Create dotted chart for aneventlog. -  
dotted_chart(activitylog): Create dotted chart for anactivitylog. -  
dotted_chart(grouped_eventlog): Create dotted chart for agrouped_eventlog. -  
dotted_chart(grouped_activitylog): Create dotted chart for agrouped_activitylog. 
Examples
library(processmapR)
library(eventdataR)
patients %>%
 dotted_chart(x = "absolute", sort = "start", color = "employee")