lined_chart | R Documentation |
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.
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()
)
log |
|
x |
|
sort |
|
color |
|
units |
|
line_width |
|
plotly |
|
scale_color |
|
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"
.
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"
.
lined_chart(eventlog)
: Create lined chart for an eventlog
.
lined_chart(activitylog)
: Create lined chart for an activitylog
.
lined_chart(grouped_eventlog)
: Create lined chart for a grouped_eventlog
.
lined_chart(grouped_activitylog)
: Create lined chart for a grouped_activitylog
.
dotted_chart()
library(processmapR)
library(eventdataR)
patients %>%
lined_chart(x = "absolute", color = "employee")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.