source code

color scripter_test

2017. 7. 20. 02:15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# KOREA 
#     SEOUL    
#         A
#             a
#             b
#         B
#     GGD    
#         A
#         B
#         C
#     BUSAN
#         A
#         B
#     ULSAN
#         A
#             a
KoreaLN <- list(name="Korea", children = 
    list(
        list(name="SEOUL", children=list(list(name="A", children=list(list(name="a"), list(name="b"))), list(name="B")))
        list(name="BUSAN", children=list(list(name="A"), list(name="B")))
        list(name="GGD", children=list(list(name="A"), list(name="B"), list(name="C"))),
        list(name="ULSAN", children=list(list(name="A", children=list(list(name="a"))))) ))
d3Tree(List = KoreaLN, fontsize = 12, diameter = 800, zoom = TRUE, file = "test7.html", nodeColour = "#ff6f69", linkColour = "#ffcc5c", textColour = "black")
shell.exec("test7.html")
cs