render_pmap_file: Render the process map as a file

Description Usage Arguments Details

View source: R/render_pmap_file.R

Description

You can save the process map to a file

Usage

1
2
3
4
render_pmap_file(p, 
   file_name, format = NULL, 
   width = NULL, height = NULL,
   use_external_dot = FALSE)

Arguments

p

the process map created by create_pmap()

file_name

the file name to be stored

format

the file format, it can be NULL(default), png, pdf, svg and ps. If it's NULL, the format will be guessed from the file_name extension.

width

width of the image (optional)

height

height of the image (optional)

use_external_dot

Whether to use external dot command to generate the file

Details

The function depends on V8 engine, so please install v8 engine support on your platform before use the function.

Example:

library(dplyr)
library(pmap)
eventlog <- generate_eventlog()
p <- create_pmap(eventlog)
render_pmap_file(p, file_name = "test.svg")

twang2218/pmv documentation built on Nov. 6, 2021, 11:16 p.m.