plot_generator: Plot a generator

plot_generatorR Documentation

Plot a generator

Description

Simple ggraph interface to draw a generator

Usage

plot_generator(generator)

Arguments

generator

a generator

Value

a basic plot of this generator

Examples

require(dplyr)

example_dataset() %>%
 make_generator_stub() %>% 
 set_generator_edges(
   list(
    "D", "A, D", 1 , 
    "A", "A, D", 1 , 
    "A, D", "A, C, D", 1 , 
    "A, D", "A, B, D", 1 , 
    "Clonal", "D", 1 , 
    "Clonal", "A", 1 , 
    "D", "D", 1 , 
    "A", "A", 1 , 
    "A, D", "A, D", 1 , 
    "A, C, D", "A, C, D", 1 , 
    "A, B, D", "A, B, D", 1 , 
    "Clonal", "Clonal", 1 
  )) %>% 
  finalize_generator %>% 
  plot_generator
 

redsnic/CIMICE documentation built on March 30, 2022, 2:46 a.m.