Type: | Package |
Title: | Construct Process Maps Using Event Data |
Version: | 0.5.7 |
Description: | Visualize event logs using directed graphs, i.e. process maps. Part of the 'bupaR' framework. |
License: | MIT + file LICENSE |
LinkingTo: | Rcpp, BH |
SystemRequirements: | C++ |
Depends: | R (≥ 3.5.0) |
Imports: | dplyr, bupaR (≥ 0.5.1), edeaR (≥ 0.9.0), DiagrammeR (≥ 1.0.0), ggplot2, stringr, purrr, data.table, shiny, miniUI, glue, forcats, hms, plotly, rlang (≥ 1.0.0), cli (≥ 3.2.0), scales, tidyr, htmltools, Rcpp, lifecycle, htmlwidgets |
Encoding: | UTF-8 |
RoxygenNote: | 7.3.2 |
Suggests: | knitr, rmarkdown, eventdataR, testthat (≥ 3.0.0), rsvg, DiagrammeRsvg, covr |
VignetteBuilder: | knitr |
URL: | https://bupar.net/, https://github.com/bupaverse/processmapr/, https://bupaverse.github.io/processmapR/ |
BugReports: | https://github.com/bupaverse/processmapr/issues/ |
Config/testthat/edition: | 3 |
Collate: | 'RcppExports.R' 'create_base_precedence.R' 'custom.R' 'deprecated.R' 'dotted_chart.R' 'dotted_char_plotly_i.R' 'dotted_chart_helpers.R' 'export_graph.R' 'export_map.R' 'frequency.R' 'get_meta_data.R' 'layout.R' 'lined_chart.R' 'lined_chart_helpers.R' 'lined_chart_plotly_i.R' 'performance.R' 'precedence_matrix.R' 'precedence_matrix.plot.R' 'processMapOutput.R' 'process_map.R' 'process_matrix.R' 'processmapR.R' 'renderProcessMap.R' 'render_map.R' 'resource_map.R' 'resource_matrix.R' 'trace_explorer.R' 'utils.R' 'utils_animateR.R' |
NeedsCompilation: | yes |
Packaged: | 2025-07-07 09:14:47 UTC; lucp8407 |
Author: | 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 <gert.janssenswillen@uhasselt.be> |
Repository: | CRAN |
Date/Publication: | 2025-07-09 14:10:02 UTC |
Custom map profile
Description
Function to create a custom map profile based on some event log attribute.
Usage
custom(
FUN = mean,
attribute,
units = "",
color_scale = "PuBu",
color_edges = "dodgerblue4"
)
Arguments
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. |
Details
If used for edges, it will show the attribute values which related to the out-going node of the edge.#'
Examples
## 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)
Deprecated Functions
Description
plotly_dotted_chart()
has been deprecated in favour of plotly_dotted_chart(..., plotly = TRUE)
.
plotly_lined_chart()
has been deprecated in favour of plotly_lined_chart(..., plotly = TRUE)
.
plotly_trace_explorer()
has been deprecated in favour of plotly_trace_explorer(..., plotly = TRUE)
.
Usage
idotted_chart(eventlog, plotly = FALSE)
iplotly_dotted_chart(eventlog)
plotly_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,
eventlog = deprecated()
)
ilined_chart(eventlog, plotly = FALSE)
iplotly_lined_chart(eventlog)
plotly_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 = TRUE,
scale_color = bupaR::scale_color_discrete_bupaR,
eventlog = deprecated()
)
plotly_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 = TRUE,
eventlog = deprecated(),
.abbreviate = deprecated()
)
Dotted Chart
Description
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.
Usage
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()
)
Arguments
log |
|
x |
|
sort |
|
color |
|
units |
|
add_end_events |
|
scale_color |
|
plotly |
|
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"
, -
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"
.
Methods (by class)
-
dotted_chart(eventlog)
: Create dotted chart for aneventlog
. -
dotted_chart(activitylog)
: Create dotted chart for anactivitylog
. -
dotted_chart(grouped_eventlog)
: Create dotted chart for agrouped_eventlog
. -
dotted_chart(grouped_activitylog)
: Create dotted chart for agrouped_activitylog
.
Examples
library(processmapR)
library(eventdataR)
patients %>%
dotted_chart(x = "absolute", sort = "start", color = "employee")
Export a graph to various image formats
Description
Export a graph to various image formats
Usage
export_graph(
graph,
file_name = NULL,
file_type = NULL,
title = NULL,
width = NULL,
height = NULL
)
Arguments
graph |
A graph object of class |
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 |
Export process map to pdf, png, ps or svg.
Description
Export process map to pdf, png, ps or svg.
Usage
export_map(
map,
file_name = NULL,
file_type = NULL,
title = NULL,
width = NULL,
height = NULL
)
Arguments
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 |
Frequency map profile
Description
Function to create a frequency profile for a process map.
Usage
frequency(
value = c("absolute", "relative", "absolute-case", "relative-case",
"relative-antecedent", "relative-consequent"),
color_scale = "PuBu",
color_edges = "dodgerblue4"
)
Arguments
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
Description
Get data values for activities and flows from process map
Usage
get_activities(process_map)
get_flows(process_map)
Arguments
process_map |
An object created using process_map function. Can both be a rendered or not rendered object. |
Configure layout parameters for process map
Description
Configure layout parameters for process map
Usage
layout_pm(fixed_positions = NULL, edge_weight = FALSE, edge_cutoff = 0)
Arguments
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 |
( |
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")
Performance map profile
Description
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.
Usage
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",
...
)
Arguments
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 |
Process Matrix Plot
Description
Visualize a precendence matrix. A generic plot function for precedences matrices.
Usage
## S3 method for class 'process_matrix'
plot(x, ...)
Arguments
x |
Precedence matrix |
... |
Additional paramters |
Value
A ggplot object, which can be customized further, if deemed necessary.
Precendence Matrix
Description
Construct a precendence matrix, showing how activities are followed by each other.
This function is deprecated and replaced by the
process_matrix
function, which shared the same usage with process_map
Usage
precedence_matrix(
eventlog,
type = c("absolute", "relative", "relative-antecedent", "relative-consequent",
"relative-case")
)
Arguments
eventlog |
The event log object to be used |
type |
The type of precedence 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. |
Examples
## Not run:
library(eventdataR)
data(patients)
precedence_matrix(patients)
## End(Not run)
Precedence Matrix
Description
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.
Usage
precedence_matrix_absolute(eventlog, lead = 1)
Arguments
eventlog |
The event log object to be used. |
lead |
The distance between activities following/preceding each other. |
Widget output function for use in Shiny
Description
Widget output function for use in Shiny
Usage
processMapOutput(outputId, width = "100%", heigth = "400px")
Arguments
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. |
Process Map
Description
A function for creating a process map of an event log.
Usage
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(),
...
)
Arguments
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 |
Methods (by class)
-
process_map(eventlog)
: Process map for event log -
process_map(grouped_eventlog)
: Process map for event log -
process_map(activitylog)
: Process map for activitylog
Examples
## Not run:
library(eventdataR)
data(patients)
process_map(patients)
## End(Not run)
Create process matrix
Description
Create process matrix
Usage
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())
Arguments
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 |
Methods (by class)
-
process_matrix(eventlog)
: Process matrix for event log -
process_matrix(activitylog)
: Process matrix for activity log
processmapR - Process Maps in R
Description
This package provides several useful techniques process visualization.
Objects exported from other packages
Description
These objects are imported from other packages. Follow the links below to see their documentation.
- dplyr
Widget render function for use in Shiny
Description
Widget render function for use in Shiny
Usage
renderProcessMap(expr, env = parent.frame(), quoted = FALSE)
Arguments
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. |
Render process map
Description
Render process map
Usage
render_map(
map,
layout = NULL,
output = NULL,
as_svg = FALSE,
title = NULL,
width = NULL,
height = NULL
)
Arguments
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. |
Resource Map
Description
A function for creating a resource map of an event log based on handover of work.
Usage
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()
)
Arguments
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 |
Methods (by class)
-
resource_map(eventlog)
: Create resource map for eventlog -
resource_map(activitylog)
: Create resource map for activity log
Examples
## Not run:
library(eventdataR)
data(patients)
resource_map(patients)
## End(Not run)
Resource Matrix
Description
Construct a resource matrix, showing how work is handed over
Usage
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()
)
Arguments
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 |
Methods (by class)
-
resource_matrix(eventlog)
: Resource matrix of event log -
resource_matrix(activitylog)
: Resource matrix of activity log
Examples
## Not run:
library(eventdataR)
data(patients)
precedence_matrix(patients)
## End(Not run)
Trace Explorer
Description
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 specifies 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)frequent traces
covering 20% of the log
.
Usage
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()
)
Arguments
log |
|
coverage |
|
n_traces |
|
type |
|
coverage_labels |
|
abbreviate |
|
show_labels |
|
label_size |
|
scale_fill |
|
raw_data |
|
plotly |
|
eventlog |
|
.abbreviate |
Methods (by class)
-
trace_explorer(eventlog)
: Trace explorer for aneventlog
. -
trace_explorer(activitylog)
: Trace explorer for anactivitylog
.
Examples
library(processmapR)
library(eventdataR)
patients %>%
trace_explorer(coverage = 0.8)