R for
Authoring!!

OOH Session #35…
diagrams Part II

Open Office Hours
(July 23, 2024)

  • Recap session #34       ↔︎️
  • Focal issue:
  • Shared problem-solving

Recap of Session #34:

🧜‍♀️🧜‍♀️Mermaid diagrams🧜‍♀️🧜‍♀️

Flowcharts:

flowchart LR
  A[   Hard edge   ] --> B(Round edge)
  B --> C{Decision}
  C --> D(((Result one)))
  C --> E((Result two))
  F -. go there smarty .-> F[Result three]
  A == go here dummy ==> G[(Result four)]
flowchart LR
  A[   Hard edge   ] --> B(Round edge)
  B --> C{Decision}
  C --> D(((Result one)))
  C --> E((Result two))
  F -. go there smarty .-> F[Result three]
  A == go here dummy ==> G[(Result four)]
  
  
  
  
  

Figure 1: better than semPlot

🧜‍♀️🧜‍♀️Mermaid diagrams🧜‍♀️🧜‍♀️

Gantt Charts:

gantt
    title A Gantt Diagram
    dateFormat YYYY-MM-DD
    section Section
        A task          :a1, 2014-01-01, 30d
        Another task    :after a1, 20d
    section Another
        Task in Another :2014-01-12, 12d
        another task    :24d

gantt
    title A Gantt Diagram
    dateFormat YYYY-MM-DD
    section Section
        A task          :a1, 2014-01-01, 30d
        Another task    :after a1, 20d
    section Another
        Task in Another :2014-01-12, 12d
        another task    :24d

🧜‍♀️🧜‍♀️Mermaid diagrams🧜‍♀️🧜‍♀️

State Diagrams:

---
title: Simple sample
---
stateDiagram-v2
direction LR
    [*] --> Still
    Still --> [*]

    Still --> Moving
    Moving --> Still
    Moving --> Crash
    Crash --> [*]

---
title: Simple sample
---
stateDiagram-v2
direction LR
    [*] --> Still
    Still --> [*]

    Still --> Moving
    Moving --> Still
    Moving --> Crash
    Crash --> [*]

🧜‍♀️🧜‍♀️Mermaid diagrams🧜‍♀️🧜‍♀️

Journeys:

journey
    title My working day
    section Go to work
      Make tea: 5: Me
      Go upstairs: 3: Me
      Do work: 1: Me, Cat, Diego
    section Go home
      Go downstairs: 2: Me
      Sit down: 5: Me

journey
    title My working day
    section Go to work
      Make tea: 5: Me
      Go upstairs: 3: Me
      Do work: 1: Me, Cat, Diego
    section Go home
      Go downstairs: 2: Me
      Sit down: 5: Me

Today:

Graphviz Diagrams

digraph finite_state_machine {
    fontname="Helvetica,Arial,sans-serif"
    node [fontname="Helvetica,Arial,sans-serif"]
    edge [fontname="Helvetica,Arial,sans-serif"]
    rankdir=LR;
    node [shape = doublecircle]; 0 3 4 8;
    node [shape = circle];
    0 -> 2 [label = "SS(B)"];
    0 -> 1 [label = "SS(S)"];
    1 -> 3 [label = "S($end)"];
    2 -> 6 [label = "SS(b)"];
    2 -> 5 [label = "SS(a)"];
    2 -> 4 [label = "S(A)"];
    5 -> 7 [label = "S(b)"];
    5 -> 5 [label = "S(a)"];
    6 -> 6 [label = "S(b)"];
    6 -> 5 [label = "S(a)"];
    7 -> 8 [label = "S(b)"];
    7 -> 5 [label = "S(a)"];
    8 -> 6 [label = "S(b)"];
    8 -> 5 [label = "S(a)"];
}

finite_state_machine 0 0 2 2 0->2 SS(B) 1 1 0->1 SS(S) 3 3 4 4 8 8 6 6 8->6 S(b) 5 5 8->5 S(a) 2->4 S(A) 2->6 SS(b) 2->5 SS(a) 1->3 S($end) 6->6 S(b) 6->5 S(a) 5->5 S(a) 7 7 5->7 S(b) 7->8 S(b) 7->5 S(a)

digraph Twelve_colors {
    label = "Twelve colors. Neato layout"
    labelloc = "b"
    layout = neato
    fontname = Arial
    node [
        shape = circle
        width = 1.5
        color="#00000088"
        style = filled
        fontname="Helvetica,Arial,sans-serif"
    ]
    edge [len = 2 penwidth = 1.5 arrowhead=open]
    start = regular
    normalize = 0
    green -> {white yellow cyan yellowgreen springgreen} [color = green]
    green [fillcolor = green fontcolor = white]
    white [fillcolor = white]
    blue [fillcolor = blue fontcolor = white]
    red [fillcolor = red fontcolor = white]
    red -> {white yellow magenta orange deeppink } [color = red]
    yellow [fillcolor = yellow]
    yellow -> {orange yellowgreen} [color = yellow]
    blue -> {white cyan magenta deepskyblue purple} [color = blue]
    cyan [fillcolor = cyan]
    magenta [fillcolor = magenta fontcolor = white]
    deepskyblue [fillcolor = deepskyblue]
    cyan -> {springgreen deepskyblue} [color  = cyan]
    orange [fillcolor = orange]
    yellowgreen [fillcolor = yellowgreen]
    deeppink [fillcolor = deeppink fontcolor = white]
    magenta -> {deeppink purple} [color = magenta]
    purple [fillcolor = purple fontcolor = white]
    springgreen [fillcolor = springgreen]
    // © 2022 Costa Shulyupin, licensed under EPL
}

Twelve_colors Twelve colors. Neato layout green green white white green->white yellow yellow green->yellow cyan cyan green->cyan yellowgreen yellowgreen green->yellowgreen springgreen springgreen green->springgreen yellow->yellowgreen orange orange yellow->orange cyan->springgreen deepskyblue deepskyblue cyan->deepskyblue blue blue blue->white blue->cyan magenta magenta blue->magenta blue->deepskyblue purple purple blue->purple red red red->white red->yellow red->magenta red->orange deeppink deeppink red->deeppink magenta->deeppink magenta->purple

graph happiness {
    labelloc="t"
    label="Mind map of Happiness.\nTwopi radial graph."
    fontname="URW Chancery L, Apple Chancery, Comic Sans MS, cursive"
    layout=twopi; graph [ranksep=2];
    edge [penwidth=5 color="#f0f0ff"]
    node [fontname="URW Chancery L, Apple Chancery, Comic Sans MS, cursive"]
    node [style="filled" penwidth=0 fillcolor="#f0f0ffA0" fontcolor=indigo]
    Happiness [fontsize=50 fontcolor=red URL="https://en.wikipedia.org/wiki/Category:Happiness"]
    node [fontsize=40]
    Happiness -- {
        Peace
        Love
        Soul
        Mind
        Life
        Health
    }
    Life [fontcolor=seagreen]
    Health [fontcolor=mediumvioletred]
    node [fontsize=25]
    Love [fontcolor=orchid URL="https://en.wikipedia.org/wiki/Category:Love"]
    Love -- {
        Giving
        People
        Beauty
    }
    Success [fontcolor=goldenrod]
    Life -- {
        Nature
        Wellbeing
        Success
    }
    Peace [URL="https://en.wikipedia.org/wiki/Category:Peace"]
    Peace -- {
        Connection
        Relationship
        Caring
    }
    Health -- {
        Body
        Recreation
    }
    Mind [URL="https://en.wikipedia.org/wiki/Category:Mind"]
    Mind -- {
        Cognition
        Consciousness
        Intelligence
    }
    Soul [URL="https://en.wikipedia.org/wiki/Soul"]
    Soul -- {
        Emotions
        Self
        Meditation
    }
    node [fontsize=""]
    Beauty -- {
        Esthetics
        Art
    }
    People -- {
        Family
        Partner
        Hug
    }
    Giving -- {
        Feelings
        Support
    }
    Self -- {
        Delight
        Joy
        Expression 
    }
    Success -- {
        Creation
        Profit
        Win
        Career
    }
    Recreation -- {
        Leisure
        Sleep
    }
    Emotions [URL="https://en.wikipedia.org/wiki/Soul"]
    Emotions -- {
        Positiveness Tranquility
    }
    Self -- Emotions [weight=10 penwidth=1 style=dotted constraint=false]
    Body -- {
        Medicine Exercises Nutrition Water Heart
    }
    Wellbeing -- {
        Home Work Finance Clothes Transport
    }
    Relationship -- {
        Friends Community Society
    }
    Connection -- {
        Acceptance
        Forgiveness
        Gratitude
        Agreement
    }
    Caring -- {
        Respect
        Empathy
        Help
    }
    Consciousness -- {
        Awareness
    }
    Meditation -- {
        Contemplation Breath
    }
    Cognition -- {
        Imagination
        Perception
        Thinking
        Understanding
        Memory
    }
    Intelligence -- {
        Learning
        Experiment
        Education
    }
    Nature -- {
        Ocean
        Forest
        Pets
        Wildlife
    }
    c [label="© 2020-2022 Costa Shulyupin" fontsize=12 shape=plain style="" fontcolor=gray]
}

happiness Mind map of Happiness. Twopi radial graph. Happiness Happiness Peace Peace Happiness--Peace Love Love Happiness--Love Soul Soul Happiness--Soul Mind Mind Happiness--Mind Life Life Happiness--Life Health Health Happiness--Health Connection Connection Peace--Connection Relationship Relationship Peace--Relationship Caring Caring Peace--Caring Giving Giving Love--Giving People People Love--People Beauty Beauty Love--Beauty Emotions Emotions Soul--Emotions Self Self Soul--Self Meditation Meditation Soul--Meditation Cognition Cognition Mind--Cognition Consciousness Consciousness Mind--Consciousness Intelligence Intelligence Mind--Intelligence Success Success Life--Success Nature Nature Life--Nature Wellbeing Wellbeing Life--Wellbeing Body Body Health--Body Recreation Recreation Health--Recreation Feelings Feelings Giving--Feelings Support Support Giving--Support Family Family People--Family Partner Partner People--Partner Hug Hug People--Hug Esthetics Esthetics Beauty--Esthetics Art Art Beauty--Art Creation Creation Success--Creation Profit Profit Success--Profit Win Win Success--Win Career Career Success--Career Ocean Ocean Nature--Ocean Forest Forest Nature--Forest Pets Pets Nature--Pets Wildlife Wildlife Nature--Wildlife Home Home Wellbeing--Home Work Work Wellbeing--Work Finance Finance Wellbeing--Finance Clothes Clothes Wellbeing--Clothes Transport Transport Wellbeing--Transport Acceptance Acceptance Connection--Acceptance Forgiveness Forgiveness Connection--Forgiveness Gratitude Gratitude Connection--Gratitude Agreement Agreement Connection--Agreement Friends Friends Relationship--Friends Community Community Relationship--Community Society Society Relationship--Society Respect Respect Caring--Respect Empathy Empathy Caring--Empathy Help Help Caring--Help Medicine Medicine Body--Medicine Exercises Exercises Body--Exercises Nutrition Nutrition Body--Nutrition Water Water Body--Water Heart Heart Body--Heart Leisure Leisure Recreation--Leisure Sleep Sleep Recreation--Sleep Imagination Imagination Cognition--Imagination Perception Perception Cognition--Perception Thinking Thinking Cognition--Thinking Understanding Understanding Cognition--Understanding Memory Memory Cognition--Memory Awareness Awareness Consciousness--Awareness Learning Learning Intelligence--Learning Experiment Experiment Intelligence--Experiment Education Education Intelligence--Education Positiveness Positiveness Emotions--Positiveness Tranquility Tranquility Emotions--Tranquility Self--Emotions Delight Delight Self--Delight Joy Joy Self--Joy Expression Expression Self--Expression Contemplation Contemplation Meditation--Contemplation Breath Breath Meditation--Breath c © 2020-2022 Costa Shulyupin

Session Info (July 23, 2024) Rendering:

R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.utf8 
[2] LC_CTYPE=English_United States.utf8   
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.utf8    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] fontawesome_0.5.2

loaded via a namespace (and not attached):
 [1] lubridate_1.9.3   emo_0.0.0.9000    digest_0.6.31     crayon_1.5.2     
 [5] assertthat_0.2.1  lifecycle_1.0.4   jsonlite_1.8.8    magrittr_2.0.3   
 [9] evaluate_0.23     stringi_1.7.12    rlang_1.1.3       cli_3.6.0        
[13] rstudioapi_0.15.0 vctrs_0.6.5       generics_0.1.3    rmarkdown_2.26   
[17] tools_4.2.2       stringr_1.5.1     glue_1.6.2        purrr_1.0.1      
[21] xfun_0.42         yaml_2.3.8        fastmap_1.1.1     compiler_4.2.2   
[25] timechange_0.3.0  htmltools_0.5.7   knitr_1.45