Skip to content

Commit 6f5ab31

Browse files
authored
Merge pull request #1063 from plotly/sanky_r_bug2
change c( to list( in examples to fix bug
2 parents 348e356 + 6d3e57a commit 6f5ab31

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

_posts/r/basic/2017-05-19-sankey.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ library(plotly)
8686
8787
p <- plot_ly(
8888
type = "sankey",
89-
domain = c(
89+
domain = list(
9090
x = c(0,1),
9191
y = c(0,1)
9292
),
@@ -117,7 +117,7 @@ json_data <- fromJSON(paste(readLines(json_file), collapse=""))
117117
118118
p <- plot_ly(
119119
type = "sankey",
120-
domain = c(
120+
domain = list(
121121
x = c(0,1),
122122
y = c(0,1)
123123
),
@@ -158,7 +158,7 @@ json_data <- fromJSON(paste(readLines(json_file), collapse=""))
158158
159159
p <- plot_ly(
160160
type = "sankey",
161-
domain = c(
161+
domain = list(
162162
x = c(0,1),
163163
y = c(0,1)
164164
),
@@ -214,7 +214,7 @@ json_data <- fromJSON(paste(readLines(json_file), collapse=""))
214214
215215
p <- plot_ly(
216216
type = "sankey",
217-
domain = c(
217+
domain = list(
218218
x = c(0,1),
219219
y = c(0,1)
220220
),

_posts/r/basic/2017-05-19-sankey.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ packageVersion('plotly')
3434
```
3535

3636
```
37-
## [1] '4.7.1.9000'
37+
## [1] '4.8.0'
3838
```
3939

4040
### Basic Sankey Diagram
@@ -77,7 +77,7 @@ chart_link = api_create(p, filename="sankey-basic-example")
7777
chart_link
7878
```
7979

80-
<iframe src="https://plot.ly/~RPlotBot/5280.embed" width="800" height="600" id="igraph" scrolling="no" seamless="seamless" frameBorder="0"> </iframe>
80+
<iframe src="https://plot.ly/~RPlotBot/5404.embed" width="800" height="600" id="igraph" scrolling="no" seamless="seamless" frameBorder="0"> </iframe>
8181

8282
### Create Canvas
8383

@@ -87,7 +87,7 @@ library(plotly)
8787

8888
p <- plot_ly(
8989
type = "sankey",
90-
domain = c(
90+
domain = list(
9191
x = c(0,1),
9292
y = c(0,1)
9393
),
@@ -118,7 +118,7 @@ json_data <- fromJSON(paste(readLines(json_file), collapse=""))
118118

119119
p <- plot_ly(
120120
type = "sankey",
121-
domain = c(
121+
domain = list(
122122
x = c(0,1),
123123
y = c(0,1)
124124
),
@@ -159,7 +159,7 @@ json_data <- fromJSON(paste(readLines(json_file), collapse=""))
159159

160160
p <- plot_ly(
161161
type = "sankey",
162-
domain = c(
162+
domain = list(
163163
x = c(0,1),
164164
y = c(0,1)
165165
),
@@ -200,7 +200,7 @@ chart_link = api_create(p, filename="sankey-basic")
200200
chart_link
201201
```
202202

203-
<iframe src="https://plot.ly/~RPlotBot/4631.embed" width="800" height="600" id="igraph" scrolling="no" seamless="seamless" frameBorder="0"> </iframe>
203+
<iframe src="https://plot.ly/~RPlotBot/5406.embed" width="800" height="600" id="igraph" scrolling="no" seamless="seamless" frameBorder="0"> </iframe>
204204

205205
### Style Sankey Diagram
206206

@@ -214,7 +214,7 @@ json_data <- fromJSON(paste(readLines(json_file), collapse=""))
214214

215215
p <- plot_ly(
216216
type = "sankey",
217-
domain = c(
217+
domain = list(
218218
x = c(0,1),
219219
y = c(0,1)
220220
),
@@ -258,7 +258,7 @@ chart_link = api_create(p, filename="sankey-dark")
258258
chart_link
259259
```
260260

261-
<iframe src="https://plot.ly/~RPlotBot/4633.embed" width="800" height="600" id="igraph" scrolling="no" seamless="seamless" frameBorder="0"> </iframe>
261+
<iframe src="https://plot.ly/~RPlotBot/5408.embed" width="800" height="600" id="igraph" scrolling="no" seamless="seamless" frameBorder="0"> </iframe>
262262

263263
### Reference
264264

0 commit comments

Comments
 (0)