R for
Authoring!!

OOH Session #36…
…Exploratory Graph Analyses

Open Office Hours
(July 30, 2024)

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

Recap of Session #35:

Graphviz Diagrams

digraph "unix" {
    graph [ fontname = "Helvetica-Oblique",
        fontsize = 36,
        label = "Object Oriented Graphs",
        ];
    node [  shape = polygon,
        sides = 4,
        distortion = "0.0",
        orientation = "0.0",
        skew = "0.0",
        color = white,
        style = filled,
        fontname = "Helvetica-Outline" ];
    "5th Edition" [sides=3, distortion="0", 
    orientation=0, skew="0", color=salmon2];
    "6th Edition" [sides=5, distortion="0.238792", 
    orientation=11, skew="0.995935", color=deepskyblue];
    "PWB 1.0" [sides=8, color=goldenrod2];
    "Mini Unix" [distortion="0.039386", 
    orientation=2, skew="-0.461120", color=greenyellow];
    Wollongong [sides=5, color=darkseagreen];
    Interdata [distortion="0.624013", 
    orientation=56, skew="0.101396", color=dodgerblue1];
    "Unix/TS 3.0" [sides=8, color=thistle2];
    "PWB 2.0" [sides=6, color=darkolivegreen3];
    "7th Edition" [sides=10, color=chocolate];
    "8th Edition" [color=turquoise3];
    "32V" [sides=7, color=steelblue3];
    V7M [sides=10, color=navy];
    "Ultrix-11" [sides=10, color=darkseagreen4];
    "5th Edition" -> "6th Edition";
    "5th Edition" -> "PWB 1.0";
    "6th Edition" -> "Mini Unix";
    "6th Edition" -> Wollongong;
    "6th Edition" -> Interdata;
    Interdata -> "Unix/TS 3.0";
    Interdata -> "PWB 2.0";
    Interdata -> "7th Edition";
    "7th Edition" -> "8th Edition";
    "7th Edition" -> "32V";
    "7th Edition" -> V7M;
    "7th Edition" -> "Ultrix-11";
    V7M -> "Ultrix-11";
}

unix Object Oriented Graphs 5th Edition 5th Edition 6th Edition 6th Edition 5th Edition->6th Edition PWB 1.0 PWB 1.0 5th Edition->PWB 1.0 Mini Unix Mini Unix 6th Edition->Mini Unix Wollongong Wollongong 6th Edition->Wollongong Interdata Interdata 6th Edition->Interdata Unix/TS 3.0 Unix/TS 3.0 Interdata->Unix/TS 3.0 PWB 2.0 PWB 2.0 Interdata->PWB 2.0 7th Edition 7th Edition Interdata->7th Edition 8th Edition 8th Edition 7th Edition->8th Edition 32V 32V 7th Edition->32V V7M V7M 7th Edition->V7M Ultrix-11 Ultrix-11 7th Edition->Ultrix-11 V7M->Ultrix-11

digraph G {
    fontname="Helvetica,Arial,sans-serif"           
    node [fontname="Helvetica,Arial,sans-serif"]
    edge [fontname="Helvetica,Arial,sans-serif"]

    subgraph cluster_0 {        
        style=filled;
        color=lightgrey;
        node [style=filled,color=white];
        a0 -> a1 -> a2 -> a3;
        label = "process #1";
    }

    subgraph cluster_1 {
        node [style=filled];
        b0 -> b1 -> b2 -> b3;
        label = "process #2";
        color=blue
    }
    start -> a0;
    start -> b0;
    a1 -> b3;
    b2 -> a3;
    a3 -> a0;
    a3 -> finish;
    b3 -> finish;

    start [shape=oval];
    finish [shape=Msquare];
}

G cluster_1 process #2 cluster_0 process #1 a0 a0 a1 a1 a0->a1 a2 a2 a1->a2 b3 b3 a1->b3 a3 a3 a2->a3 a3->a0 finish finish a3->finish b0 b0 b1 b1 b0->b1 b2 b2 b1->b2 b2->a3 b2->b3 b3->finish start start start->a0 start->b0

digraph G {
  fontname="Helvetica,Arial,sans-serif"
  node [fontname="Helvetica,Arial,sans-serif"]
  edge [fontname="Helvetica,Arial,sans-serif"]
  a0 [shape=none label=<
 <TABLE border="0" cellspacing="10" 
 cellpadding="10" 
 style="rounded" 
 bgcolor="/rdylgn11/1:/rdylgn11/11" 
 gradientangle="315">
  <TR><TD bgcolor="/rdylgn11/1:/rdylgn11/2">00</TD>
  <TD bgcolor="/rdylgn11/2:/rdylgn11/3">01</TD>
  <TD bgcolor="/rdylgn11/3:/rdylgn11/4">02</TD>
  <TD bgcolor="/rdylgn11/4:/rdylgn11/5">03</TD>
  </TR>
  
  <TR><TD bgcolor="/rdylgn11/1:/rdylgn11/6" 
  gradientangle="270">10</TD>
  <TD rowspan="2"  bgcolor="/rdylgn11/3:/rdylgn11/9" 
  gradientangle="270">11</TD>
  <TD bgcolor="/rdylgn11/3:/rdylgn11/8" 
  gradientangle="270">12</TD>
  <TD bgcolor="/rdylgn11/4:/rdylgn11/9" 
  gradientangle="270">13</TD>
  </TR>
  
  <TR><TD bgcolor="/rdylgn11/6:/rdylgn11/9" 
  gradientangle="270">20</TD>
  <TD colspan="2"  
  bgcolor="/rdylgn11/9:/rdylgn11/11">22</TD>
  </TR>
  
  <TR><TD style="radial" 
  bgcolor="/rdylgn11/1:/rdylgn11/8">30</TD>
  <TD style="radial" 
  bgcolor="/rdylgn11/1:/rdylgn11/8" 
  gradientangle="45">31</TD>
  <TD style="radial" 
  bgcolor="/rdylgn11/1:/rdylgn11/8"
  gradientangle="90" >32</TD>
  <TD style="radial" 
  bgcolor="/rdylgn11/1:/rdylgn11/8" 
  gradientangle="180">33</TD>
  </TR>
  
</TABLE>>];

}

G a0 00 01 02 03 10 11 12 13 20 22 30 31 32 33

Today:

Exploratory Graph Analysis:

Session Info (July 30, 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