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.
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 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 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 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 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()
)
log: Object of class log or derivatives (grouped_log,
eventlog, activitylog, etc.).
character (default "absolute"): Value to plot on x-axis: "absolute" time or "relative" time
(since start of week: "relative_week", since start of day: "relative_day").
character (default "auto"): Ordering of the cases on y-axis: "auto" (default, see Details),
"start", "end", "duration", "start_week", or "start_day".
character (default NULL): Attribute to use for coloring the activity instances (dots).
This attribute should be present in log. Default (NULL) is the activity identifier (activity_id()).
Use NA for no colors.
character (default "auto"): Time units to use on the x-axis in case of relative time: "auto"
(default, see Details), "secs", "mins", "hours", "days", or "weeks".
logical (default FALSE): Whether to add dots for the complete lifecycle event with a different shape.
ggplot2 scale function (default scale_color_discrete_bupaR):
Set color scale. Defaults to scale_color_discrete_bupaR. Replaced with scale_color_discrete when more than 26 activities are present.
logical (default FALSE): Return a plotly object, instead of a ggplot2.
dotted_chart(eventlog): Create dotted chart for an eventlog.
dotted_chart(activitylog): Create dotted chart for an activitylog.
dotted_chart(grouped_eventlog): Create dotted chart for a grouped_eventlog.
dotted_chart(grouped_activitylog): Create dotted chart for a grouped_activitylog.
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".
library(processmapR)
library(eventdataR)
patients %>%
dotted_chart(x = "absolute", sort = "start", color = "employee")
Run the code above in your browser using DataLab