Skip to content

Commit 6cfaccc

Browse files
authored
Merge branch 'master' into dev
2 parents 43bf875 + b62c2e3 commit 6cfaccc

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

docs/analysis/visualize-graph.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,7 @@ kgtk visualize-graph -i examples/docs/visualize_force_graph_example2.tsv -o defa
251251
```
252252
This is the default version of this command, only producing a graph with default color, width and size
253253

254-
<img src="https://github.com/usc-isi-i2/kgtk/raw/dev/docs/images/visualize-force-graph-examples/1.jpg" width="300"/>
255-
254+
<img src="https://github.com/usc-isi-i2/kgtk/raw/master/docs/images/visualize-force-graph-examples/1.jpg" width="300"/>
256255

257256
## 2. Color by `is_country` column in the node file, use `d3.schemeCategory10` to color nodes
258257
```
@@ -265,6 +264,7 @@ kgtk visualize-graph -i examples/docs/visualize_force_graph_example2.tsv \
265264
```
266265
This command specifies `is_country` as column for assigning colors.
267266

267+
268268
This command specifies that the values in the color column are numbers and should be left as is with the help of following option `--node-color-numbers as-
269269
is`.
270270

@@ -282,13 +282,13 @@ kgtk visualize-graph -i examples/docs/visualize_force_graph_example2.tsv \
282282
-o show_degrees.html
283283
```
284284

285+
285286
This command specifies `degree` as column for assigning colors.
286287

287288
This command specifies that the values in the color column are numbers and should be scaled logarithmically with the help of following option `--node-color-numbers log`.
288289

289290
Finally, we specify that nodes should be colored using the `d3.schemePastel1` style.
290291

291-
292292
<img src="https://github.com/usc-isi-i2/kgtk/raw/dev/docs/images/visualize-force-graph-examples/3.png" width="300"/>
293293

294294
## 4. Handle missing values
@@ -302,6 +302,7 @@ kgtk visualize-graph -i examples/docs/visualize_force_graph_example2.tsv \
302302

303303
This command uses the column `type_missing` as assigning colors.
304304

305+
305306
Notice here there are missing values.
306307

307308
All missing values will be assigned the default node color, using the style `d3.schemeSet3` to color nodes.
@@ -331,7 +332,6 @@ This command uses the column `hex_color`, which contains valid hex colors, for a
331332

332333
<img src="https://github.com/usc-isi-i2/kgtk/raw/dev/docs/images/visualize-force-graph-examples/6.png" width="300"/>
333334

334-
335335
## 7. Show Node Size and Color
336336
```
337337
kgtk visualize-graph -i examples/docs/visualize_force_graph_example2.tsv \
@@ -350,7 +350,6 @@ Size of the nodes is proportional to the values in the column `population`, we s
350350

351351
<img src="https://github.com/usc-isi-i2/kgtk/raw/dev/docs/images/visualize-force-graph-examples/7.png" width="300"/>
352352

353-
354353
## 8. Edge Width
355354
```
356355
kgtk visualize-graph -i examples/docs/visualize_force_graph_example2.tsv \
@@ -370,7 +369,6 @@ Resulting edge width will be between 2.0 and 5.0 as specified by the options `--
370369
Any edge with no value in weight columns will be assigned the default size: 2.0
371370

372371
Moreover, color the nodes using the numerical values in the column `degree`, scaling the values linearly, using the style `d3.schemeDark2`.
373-
374372
<img src="https://github.com/usc-isi-i2/kgtk/raw/dev/docs/images/visualize-force-graph-examples/8.png" width="300"/>
375373

376374
## 9. Show text above nodes
@@ -386,7 +384,6 @@ Colors nodes by the column `hex_color` and shows labels above the nodes
386384

387385
<img src="https://github.com/usc-isi-i2/kgtk/raw/dev/docs/images/visualize-force-graph-examples/9.png" width="300"/>
388386

389-
390387
## 10. Show labels on edges, color edges using hex colors
391388
```
392389
kgtk visualize-graph -i examples/docs/visualize_force_graph_example2.tsv \
@@ -489,3 +486,4 @@ kgtk visualize-graph -i examples/docs/visualize_force_graph_example2.tsv \
489486
This command maps strings in the column `label` to a categorical scale `d3.schemeDark2`
490487

491488
<img src="https://github.com/usc-isi-i2/kgtk/raw/dev/docs/images/visualize-force-graph-examples/16.png" width="300"/>
489+

0 commit comments

Comments
 (0)