lined_chart {processmapR} | R Documentation |
Lined Chart
Description
A lined chart is a graph in which each activity instance is displayed with a line. The x-axis refers to the time aspect, while the y-axis refers to cases.
Usage
lined_chart(
log,
x = c("absolute", "relative"),
sort = c("auto", "start", "end", "duration"),
color = NULL,
units = c("auto", "secs", "mins", "hours", "days", "weeks"),
line_width = 2,
plotly = FALSE,
scale_color = bupaR::scale_color_discrete_bupaR,
eventlog = deprecated()
)
## S3 method for class 'eventlog'
lined_chart(
log,
x = c("absolute", "relative"),
sort = c("auto", "start", "end", "duration"),
color = NULL,
units = c("auto", "secs", "mins", "hours", "days", "weeks"),
line_width = 2,
plotly = FALSE,
scale_color = bupaR::scale_color_discrete_bupaR,
eventlog = deprecated()
)
## S3 method for class 'activitylog'
lined_chart(
log,
x = c("absolute", "relative"),
sort = c("auto", "start", "end", "duration"),
color = NULL,
units = c("auto", "secs", "mins", "hours", "days", "weeks"),
line_width = 2,
plotly = FALSE,
scale_color = bupaR::scale_color_discrete_bupaR,
eventlog = deprecated()
)
## S3 method for class 'grouped_eventlog'
lined_chart(
log,
x = c("absolute", "relative"),
sort = c("auto", "start", "end", "duration"),
color = NULL,
units = c("auto", "secs", "mins", "hours", "days", "weeks"),
line_width = 2,
plotly = FALSE,
scale_color = bupaR::scale_color_discrete_bupaR,
eventlog = deprecated()
)
## S3 method for class 'grouped_activitylog'
lined_chart(
log,
x = c("absolute", "relative"),
sort = c("auto", "start", "end", "duration"),
color = NULL,
units = c("auto", "secs", "mins", "hours", "days", "weeks"),
line_width = 2,
plotly = FALSE,
scale_color = bupaR::scale_color_discrete_bupaR,
eventlog = deprecated()
)
Arguments
log |
|
x |
|
sort |
|
color |
|
units |
|
line_width |
|
plotly |
|
scale_color |
|
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"
.
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"
.
Methods (by class)
-
lined_chart(eventlog)
: Create lined chart for aneventlog
. -
lined_chart(activitylog)
: Create lined chart for anactivitylog
. -
lined_chart(grouped_eventlog)
: Create lined chart for agrouped_eventlog
. -
lined_chart(grouped_activitylog)
: Create lined chart for agrouped_activitylog
.
See Also
Examples
library(processmapR)
library(eventdataR)
patients %>%
lined_chart(x = "absolute", color = "employee")