-
-
Notifications
You must be signed in to change notification settings - Fork 120
/
dash-info.yaml
62 lines (59 loc) · 2.3 KB
/
dash-info.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
pkg_help_description: >-
A Component Library for 'Dash' aimed at facilitating network visualization in R, wrapped around Cytoscape.js.
pkg_help_title: >-
A Component Library for 'Dash' aimed at facilitating network visualization in R, wrapped around Cytoscape.js.
pkg_authors: >-
c(person("Chris", "Parmer", email = "[email protected]", role = c("aut")), person("Xing Han", "Lu", email = "[email protected]", role = c("cre")), person(family = "Plotly Technologies, Inc.", role = "cph"))
pkg_copyright: >-
Plotly Technologies, Inc.
r_examples:
- name: cytoCytoscape
dontrun: FALSE
code: |
if (interactive()) {
library(dash)
library(dashCytoscape)
app <- Dash$new()
app$layout(
cytoCytoscape(
id='cytoscape-elements-boolean',
layout = list(name = 'preset'),
style = list(width = '100\%', height = '400px'),
elements=list(
list(
data = list(id = 'one', label = 'Locked'),
position = list(x = 75, y = 75),
locked = TRUE
),
list(
data = list(id = 'two', label = 'Selected'),
position = list(x = 75, y = 200),
selected = TRUE
),
list(
data = list(id = 'three', label = 'Not Selectable'),
position = list(x = 200, y = 75),
selectable = FALSE
),
list(
data = list(id = 'four', label = 'Not Grabbable'),
position = list(x = 200, y = 200),
grabbable = FALSE
),
list(
data = list(source = 'one', target = 'two')
),
list(
data = list(source = 'two', target = 'three')
),
list(
data = list(source = 'three', target = 'four')
),
list(
data = list(source = 'two', target = 'four')
)
)
)
)
app$run_server()
}