Title: | Construct Process Maps Using Event Data |
---|---|
Description: | Visualize event logs using directed graphs, i.e. process maps. Part of the 'bupaR' framework. |
Authors: | Gert Janssenswillen [aut, cre], Gerard van Hulzen [ctb], BenoƮt Depaire [ctb], Felix Mannhardt [ctb], Thijs Beuving [ctb], urvikalia [ctb], Hasselt University [cph] |
Maintainer: | Gert Janssenswillen <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.5.5 |
Built: | 2024-10-30 06:57:08 UTC |
Source: | CRAN |
Function to create a custom map profile based on some event log attribute.
custom( FUN = mean, attribute, units = "", color_scale = "PuBu", color_edges = "dodgerblue4" )
custom( FUN = mean, attribute, units = "", color_scale = "PuBu", color_edges = "dodgerblue4" )
FUN |
A summary function to be called on the provided event attribute, e.g. mean, median, min, max. na.rm = T by default. |
attribute |
The name of the case attribute to visualize (should be numeric) |
units |
Character to be placed after values (e.g. EUR for monitary euro values) |
color_scale |
Name of color scale to be used for nodes. Defaults to PuBu. See |
color_edges |
The color used for edges. Defaults to dodgerblue4. |
If used for edges, it will show the attribute values which related to the out-going node of the edge.#'
## Not run: library(eventdataR) library(processmapR) data(traffic_fines) # make sure the amount attribute is propagated forward in each trace # using zoo::na.locf instead of tidyr::fill since it is much faster # still the whole pre-processing is still very slow library(zoo) traffic_fines_prepared <- traffic_fines %>% filter_trace_frequency(percentage = 0.8) %>% group_by_case() %>% mutate(amount = na.locf(amount, na.rm = F)) %>% ungroup_eventlog() process_map(traffic_fines_prepared, type_nodes = custom(attribute = "amount", units = "EUR")) ## End(Not run)
## Not run: library(eventdataR) library(processmapR) data(traffic_fines) # make sure the amount attribute is propagated forward in each trace # using zoo::na.locf instead of tidyr::fill since it is much faster # still the whole pre-processing is still very slow library(zoo) traffic_fines_prepared <- traffic_fines %>% filter_trace_frequency(percentage = 0.8) %>% group_by_case() %>% mutate(amount = na.locf(amount, na.rm = F)) %>% ungroup_eventlog() process_map(traffic_fines_prepared, type_nodes = custom(attribute = "amount", units = "EUR")) ## End(Not run)
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() )
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")
library(processmapR) library(eventdataR) patients %>% dotted_chart(x = "absolute", sort = "start", color = "employee")
Export process map to pdf, png, ps or svg.
export_map( map, file_name = NULL, file_type = NULL, title = NULL, width = NULL, height = NULL )
export_map( map, file_name = NULL, file_type = NULL, title = NULL, width = NULL, height = NULL )
map |
A |
file_name |
The name of the exported file (including it's extension). |
file_type |
The type of file to be exported. Options for graph files
are: |
title |
An optional title for the output graph. |
width |
Output width in pixels or |
height |
Output height in pixels or |
Function to create a frequency profile for a process map.
frequency( value = c("absolute", "relative", "absolute-case", "relative-case", "relative-antecedent", "relative-consequent"), color_scale = "PuBu", color_edges = "dodgerblue4" )
frequency( value = c("absolute", "relative", "absolute-case", "relative-case", "relative-antecedent", "relative-consequent"), color_scale = "PuBu", color_edges = "dodgerblue4" )
value |
The type of frequency value to be used: absolute, relative (percentage of activity instances) or relative_case (percentage of cases the activity occurs in). |
color_scale |
Name of color scale to be used for nodes. Defaults to PuBu. See |
color_edges |
The color used for edges. Defaults to dodgerblue4. |
Get data values for activities and flows from process map
get_activities(process_map) get_flows(process_map)
get_activities(process_map) get_flows(process_map)
process_map |
An object created using process_map function. Can both be a rendered or not rendered object. |
Configure layout parameters for process map
layout_pm(fixed_positions = NULL, edge_weight = FALSE, edge_cutoff = 0)
layout_pm(fixed_positions = NULL, edge_weight = FALSE, edge_cutoff = 0)
fixed_positions |
When specified as a data.frame with three columns 'act', 'x', and 'y' the position of nodes is fixed. Note that using this option switches to the 'neato' layout engine. |
edge_weight |
When |
edge_cutoff |
( |
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() )
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
.
library(processmapR) library(eventdataR) patients %>% lined_chart(x = "absolute", color = "employee")
library(processmapR) library(eventdataR) patients %>% lined_chart(x = "absolute", color = "employee")
Function to create a performance map profile to be used as the type of a process map. It results in a process map describing process time.
performance( FUN = mean, units = c("mins", "secs", "hours", "days", "weeks", "months", "quarters", "semesters", "years"), flow_time = c("idle_time", "inter_start_time"), color_scale = "Reds", color_edges = "red4", ... )
performance( FUN = mean, units = c("mins", "secs", "hours", "days", "weeks", "months", "quarters", "semesters", "years"), flow_time = c("idle_time", "inter_start_time"), color_scale = "Reds", color_edges = "red4", ... )
FUN |
A summary function to be called on the process time of a specific activity, e.g. mean, median, min, max |
units |
The time unit in which processing time should be presented (mins, hours, days, weeks, months, quarters, semesters, years. A month is defined as 30 days. A quarter is 13 weeks. A semester is 26 weeks and a year is 365 days |
flow_time |
The time to depict on the flows: the inter start time is the time between the start timestamp of consecutive activity instances, the idle time is the time between the end and start time of consecutive activity instances. |
color_scale |
Name of color scale to be used for nodes. Defaults to Reds. See |
color_edges |
The color used for edges. Defaults to red4. |
... |
Additional arguments too FUN |
Visualize a precendence matrix. A generic plot function for precedences matrices.
## S3 method for class 'process_matrix' plot(x, ...)
## S3 method for class 'process_matrix' plot(x, ...)
x |
Precedence matrix |
... |
Additional paramters |
A ggplot object, which can be customized further, if deemed necessary.
Construct a precedence matrix, showing how activities are followed by each other.
This function computes the precedence matrix directly in C++ for efficiency.
Only the type absolute
of (precedence_matrix
) is supported.
precedence_matrix_absolute(eventlog, lead = 1)
precedence_matrix_absolute(eventlog, lead = 1)
eventlog |
The event log object to be used. |
lead |
The distance between activities following/preceding each other. |
A function for creating a process map of an event log.
process_map( log, type = frequency("absolute"), sec = NULL, type_nodes = type, type_edges = type, sec_nodes = sec, sec_edges = sec, rankdir = "LR", render = T, fixed_edge_width = F, layout = layout_pm(), eventlog = deprecated(), ... ) ## S3 method for class 'eventlog' process_map( log, type = frequency("absolute"), sec = NULL, type_nodes = type, type_edges = type, sec_nodes = sec, sec_edges = sec, rankdir = "LR", render = T, fixed_edge_width = F, layout = layout_pm(), eventlog = deprecated(), ... ) ## S3 method for class 'grouped_eventlog' process_map( log, type = frequency("absolute"), sec = NULL, type_nodes = type, type_edges = type, sec_nodes = sec, sec_edges = sec, rankdir = "LR", render = T, fixed_edge_width = F, layout = layout_pm(), eventlog = deprecated(), ... ) ## S3 method for class 'activitylog' process_map( log, type = frequency("absolute"), sec = NULL, type_nodes = type, type_edges = type, sec_nodes = sec, sec_edges = sec, rankdir = "LR", render = T, fixed_edge_width = F, layout = layout_pm(), eventlog = deprecated(), ... )
process_map( log, type = frequency("absolute"), sec = NULL, type_nodes = type, type_edges = type, sec_nodes = sec, sec_edges = sec, rankdir = "LR", render = T, fixed_edge_width = F, layout = layout_pm(), eventlog = deprecated(), ... ) ## S3 method for class 'eventlog' process_map( log, type = frequency("absolute"), sec = NULL, type_nodes = type, type_edges = type, sec_nodes = sec, sec_edges = sec, rankdir = "LR", render = T, fixed_edge_width = F, layout = layout_pm(), eventlog = deprecated(), ... ) ## S3 method for class 'grouped_eventlog' process_map( log, type = frequency("absolute"), sec = NULL, type_nodes = type, type_edges = type, sec_nodes = sec, sec_edges = sec, rankdir = "LR", render = T, fixed_edge_width = F, layout = layout_pm(), eventlog = deprecated(), ... ) ## S3 method for class 'activitylog' process_map( log, type = frequency("absolute"), sec = NULL, type_nodes = type, type_edges = type, sec_nodes = sec, sec_edges = sec, rankdir = "LR", render = T, fixed_edge_width = F, layout = layout_pm(), eventlog = deprecated(), ... )
log |
|
type |
A process map type, which can be created with the functions frequency, performance and custom. The first type focusses on the frequency aspect of a process, while the second one focussed on processing time. The third one allows custom attributes to be used. |
sec |
A secondary process map type. Values are shown between brackets. |
type_nodes |
A process map type to be used for nodes only, which can be created with the functions frequency and performance. The first type focusses on the frequency aspect of a process, while the second one focussed on processing time. |
type_edges |
A process map type to be used for edges only, which can be created with the functions frequency and performance. The first type focusses on the frequency aspect of a process, while the second one focussed on processing time. |
sec_nodes |
A secondary process map type for nodes only. |
sec_edges |
A secondary process map type for edges only. |
rankdir |
The direction in which to layout the graph: "LR" (default),"TB", "BT", "RL", corresponding to directed graphs drawn from top to bottom, from left to right, from bottom to top, and from right to left, respectively. |
render |
Whether the map should be rendered immediately (default), or rather an object of type dgr_graph should be returned. |
fixed_edge_width |
If TRUE, don't vary the width of edges. |
layout |
List of parameters influencing the (automatic) layout of the process map. Use |
eventlog |
|
... |
Deprecated arguments |
process_map(eventlog)
: Process map for event log
process_map(grouped_eventlog)
: Process map for event log
process_map(activitylog)
: Process map for activitylog
## Not run: library(eventdataR) data(patients) process_map(patients) ## End(Not run)
## Not run: library(eventdataR) data(patients) process_map(patients) ## End(Not run)
Create process matrix
process_matrix(log, type, ..., eventlog = deprecated()) ## S3 method for class 'eventlog' process_matrix(log, type = frequency(), ..., eventlog = deprecated()) ## S3 method for class 'activitylog' process_matrix(log, type = frequency(), ..., eventlog = deprecated())
process_matrix(log, type, ..., eventlog = deprecated()) ## S3 method for class 'eventlog' process_matrix(log, type = frequency(), ..., eventlog = deprecated()) ## S3 method for class 'activitylog' process_matrix(log, type = frequency(), ..., eventlog = deprecated())
log |
|
type |
A process matrix type, which can be created with the functions frequency, performance and custom. The first type focusses on the frequency aspect of a process, while the second one focussed on processing time. The third one allows custom attributes to be used. |
... |
Other arguments |
eventlog |
process_matrix(eventlog)
: Process matrix for event log
process_matrix(activitylog)
: Process matrix for activity log
Widget output function for use in Shiny
processMapOutput(outputId, width = "100%", heigth = "400px")
processMapOutput(outputId, width = "100%", heigth = "400px")
outputId |
Output variable to read from. |
width |
A valid CSS unit for the width or a number, which will be coerced to a string and have px appended. |
heigth |
A valid CSS unit for the height or a number, which will be coerced to a string and have px appended. |
This package provides several useful techniques process visualization.
Render process map
render_map( map, layout = NULL, output = NULL, as_svg = FALSE, title = NULL, width = NULL, height = NULL )
render_map( map, layout = NULL, output = NULL, as_svg = FALSE, title = NULL, width = NULL, height = NULL )
map |
A |
layout |
A string specifying a layout type to use for node placement in
this rendering. Possible layouts include: |
output |
A string specifying the output type; |
as_svg |
An option to render the graph as an SVG document. |
title |
An optional title for a graph when using |
width |
An optional parameter for specifying the width of the resulting graphic in pixels. |
height |
An optional parameter for specifying the height of the resulting graphic in pixels. |
Widget render function for use in Shiny
renderProcessMap(expr, env = parent.frame(), quoted = FALSE)
renderProcessMap(expr, env = parent.frame(), quoted = FALSE)
expr |
an expression that generates a DiagrammeR graph. |
env |
the environment in which to evaluate expr. |
quoted |
is expr a quoted expression (with quote())? This is useful if you want to save an expression in a variable. |
A function for creating a resource map of an event log based on handover of work.
resource_map(log, type, render, ..., eventlog = deprecated()) ## S3 method for class 'eventlog' resource_map( log, type = frequency("absolute"), render = T, ..., eventlog = deprecated() ) ## S3 method for class 'activitylog' resource_map( log, type = frequency("absolute"), render = T, ..., eventlog = deprecated() )
resource_map(log, type, render, ..., eventlog = deprecated()) ## S3 method for class 'eventlog' resource_map( log, type = frequency("absolute"), render = T, ..., eventlog = deprecated() ) ## S3 method for class 'activitylog' resource_map( log, type = frequency("absolute"), render = T, ..., eventlog = deprecated() )
log |
|
type |
A process map type, which can be created with the functions frequency and performance. The first type focusses on the frequency aspect of a process, while the second one focussed on processing time. |
render |
Whether the map should be rendered immediately (default), or rather an object of type dgr_graph should be returned. |
... |
Deprecated arguments |
eventlog |
resource_map(eventlog)
: Create resource map for eventlog
resource_map(activitylog)
: Create resource map for activity log
## Not run: library(eventdataR) data(patients) resource_map(patients) ## End(Not run)
## Not run: library(eventdataR) data(patients) resource_map(patients) ## End(Not run)
Construct a resource matrix, showing how work is handed over
resource_matrix(log, type, eventlog = deprecated()) ## S3 method for class 'eventlog' resource_matrix( log, type = c("absolute", "relative", "relative-antecedent", "relative-consequent"), eventlog = deprecated() ) ## S3 method for class 'activitylog' resource_matrix( log, type = c("absolute", "relative", "relative-antecedent", "relative-consequent"), eventlog = deprecated() )
resource_matrix(log, type, eventlog = deprecated()) ## S3 method for class 'eventlog' resource_matrix( log, type = c("absolute", "relative", "relative-antecedent", "relative-consequent"), eventlog = deprecated() ) ## S3 method for class 'activitylog' resource_matrix( log, type = c("absolute", "relative", "relative-antecedent", "relative-consequent"), eventlog = deprecated() )
log |
|
type |
The type of resource matrix, which can be absolulte, relative, relative_antecedent or relative_consequent. Absolute will return a matrix with absolute frequencies, relative will return global relative frequencies for all antecedent-consequent pairs. Relative_antecedent will return relative frequencies within each antecendent, i.e. showing the relative proportion of consequents within each antecedent. Relative_consequent will do the reverse. |
eventlog |
resource_matrix(eventlog)
: Resource matrix of event log
resource_matrix(activitylog)
: Resource matrix of activity log
## Not run: library(eventdataR) data(patients) precedence_matrix(patients) ## End(Not run)
## Not run: library(eventdataR) data(patients) precedence_matrix(patients) ## End(Not run)
Different activity sequences in the log
can be visualized with trace_explorer()
. With the type
argument,
it can be used to explore frequent as well as infrequent traces. The coverage
argument specificies how much of the
log
you want to explore. By default it is set at 0.2
, meaning that it will show the most (in)frequency traces
covering 20% of the log
.
trace_explorer( log, coverage = NULL, n_traces = NULL, type = c("frequent", "infrequent"), coverage_labels = c("relative", "absolute", "cumulative"), abbreviate = TRUE, show_labels = TRUE, label_size = 3, scale_fill = bupaR::scale_fill_discrete_bupaR, raw_data = FALSE, plotly = FALSE, eventlog = deprecated(), .abbreviate = deprecated() ) ## S3 method for class 'eventlog' trace_explorer( log, coverage = NULL, n_traces = NULL, type = c("frequent", "infrequent"), coverage_labels = c("relative", "absolute", "cumulative"), abbreviate = TRUE, show_labels = TRUE, label_size = 3, scale_fill = bupaR::scale_fill_discrete_bupaR, raw_data = FALSE, plotly = FALSE, eventlog = deprecated(), .abbreviate = deprecated() ) ## S3 method for class 'activitylog' trace_explorer( log, coverage = NULL, n_traces = NULL, type = c("frequent", "infrequent"), coverage_labels = c("relative", "absolute", "cumulative"), abbreviate = TRUE, show_labels = TRUE, label_size = 3, scale_fill = bupaR::scale_fill_discrete_bupaR, raw_data = FALSE, plotly = FALSE, eventlog = deprecated(), .abbreviate = deprecated() )
trace_explorer( log, coverage = NULL, n_traces = NULL, type = c("frequent", "infrequent"), coverage_labels = c("relative", "absolute", "cumulative"), abbreviate = TRUE, show_labels = TRUE, label_size = 3, scale_fill = bupaR::scale_fill_discrete_bupaR, raw_data = FALSE, plotly = FALSE, eventlog = deprecated(), .abbreviate = deprecated() ) ## S3 method for class 'eventlog' trace_explorer( log, coverage = NULL, n_traces = NULL, type = c("frequent", "infrequent"), coverage_labels = c("relative", "absolute", "cumulative"), abbreviate = TRUE, show_labels = TRUE, label_size = 3, scale_fill = bupaR::scale_fill_discrete_bupaR, raw_data = FALSE, plotly = FALSE, eventlog = deprecated(), .abbreviate = deprecated() ) ## S3 method for class 'activitylog' trace_explorer( log, coverage = NULL, n_traces = NULL, type = c("frequent", "infrequent"), coverage_labels = c("relative", "absolute", "cumulative"), abbreviate = TRUE, show_labels = TRUE, label_size = 3, scale_fill = bupaR::scale_fill_discrete_bupaR, raw_data = FALSE, plotly = FALSE, eventlog = deprecated(), .abbreviate = deprecated() )
log |
|
coverage |
|
n_traces |
|
type |
|
coverage_labels |
|
abbreviate |
|
show_labels |
|
label_size |
|
scale_fill |
|
raw_data |
|
plotly |
|
eventlog |
|
.abbreviate |
trace_explorer(eventlog)
: Trace explorer for an eventlog
.
trace_explorer(activitylog)
: Trace explorer for an activitylog
.
library(processmapR) library(eventdataR) patients %>% trace_explorer(coverage = 0.8)
library(processmapR) library(eventdataR) patients %>% trace_explorer(coverage = 0.8)