dotted_chart | R Documentation |
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 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()
)
log |
|
x |
|
sort |
|
color |
|
units |
|
add_end_events |
|
scale_color |
|
plotly |
|
eventlog |
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"
.
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
.
library(processmapR)
library(eventdataR)
patients %>%
dotted_chart(x = "absolute", sort = "start", color = "employee")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.