Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 28bffa4

Browse files
committed
Ran python publish.py test.
1 parent 10835fe commit 28bffa4

File tree

8 files changed

+74
-0
lines changed

8 files changed

+74
-0
lines changed

reports/test-report.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ Complete examples:
157157
python-replot1
158158
python-replot2
159159
shared-axes-subplots
160+
shiny-ggplot2
161+
shiny-r
160162
show-legend
161163
simple-annotation
162164
simple-contour
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
{}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
library(plotly)
2+
{% if not username %}# Fill in with your personal username and API key
3+
# or, use this public demo account
4+
{% endif %}py <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})
5+
6+
trace1 <- list(
7+
x = c(1, 2, 3, 4),
8+
y = c(1, 4, 9, 16),
9+
name = "$\alpha_{1c} = 352 \pm 11 \text{ km s}^{-1}$",
10+
type = "scatter"
11+
)
12+
trace2 <- list(
13+
x = c(1, 2, 3, 4),
14+
y = c(0.5, 2, 4.5, 8),
15+
name = "$\beta_{1c} = 25 \pm 11 \text{ km s}^{-1}$",
16+
type = "scatter"
17+
)
18+
data <- list(trace1, trace2)
19+
layout <- list(
20+
xaxis = list(title = "$\sqrt{(n_\text{c}(t|{T_\text{early}}))}$"),
21+
yaxis = list(title = "$d, r \text{ (solar radius)}$")
22+
)
23+
response <- py$plotly(data, kwargs=list(layout=layout, filename="shiny-r", fileopt="overwrite"))
24+
url <- response$url

test-published/api-docs/references/ggplot2.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,26 @@
298298
},
299299
{
300300
"branches": [
301+
{
302+
"branches": [
303+
{
304+
"code": "exlusive-embedding/shiny-ggplot2/shiny-ggplot2/ggplot2/code.txt",
305+
"id": "shiny-ggplot2",
306+
"languages": [
307+
"ggplot2"
308+
],
309+
"name": "Shiny Example Placeholder",
310+
"parent": "shiny-ggplot2",
311+
"type": "model",
312+
"url": "https://plot.ly/~TestBot/406"
313+
}
314+
],
315+
"has_thumbnail": false,
316+
"id": "shiny-ggplot2",
317+
"name": "Getting Started with Shiny and Plotly",
318+
"parent": "exlusive-embedding",
319+
"relative_url": "shiny-tutorial"
320+
},
301321
{
302322
"branches": [
303323
{

test-published/api-docs/references/r.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,6 +1833,26 @@
18331833
"name": "Embedding Graphs in HTML",
18341834
"parent": "get-requests-and-images",
18351835
"relative_url": "embedding-plotly-graphs-in-HTML"
1836+
},
1837+
{
1838+
"branches": [
1839+
{
1840+
"code": "get-requests-and-images/shiny-r/shiny-r/r/code.txt",
1841+
"id": "shiny-r",
1842+
"languages": [
1843+
"r"
1844+
],
1845+
"name": "Shiny Example Placeholder",
1846+
"parent": "shiny-r",
1847+
"type": "model",
1848+
"url": "https://plot.ly/~TestBot/405"
1849+
}
1850+
],
1851+
"has_thumbnail": false,
1852+
"id": "shiny-r",
1853+
"name": "Getting Started with Shiny and Plotly",
1854+
"parent": "get-requests-and-images",
1855+
"relative_url": "shiny-tutorial"
18361856
}
18371857
],
18381858
"has_thumbnail": false,
30.5 KB
Loading

test-published/images/shiny-r.png

30.5 KB
Loading

tree.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3339,8 +3339,11 @@
33393339
},
33403340
"ggplot2": "auto-docs/exlusive-embedding/shiny-ggplot2/shiny-ggplot2/ggplot2/code.txt",
33413341
"id": "shiny-ggplot2",
3342+
"image": true,
33423343
"is_leaf": true,
33433344
"path": "hard-coded/exlusive-embedding/shiny-ggplot2/shiny-ggplot2",
3345+
"test-ggplot2": "test-published/api-docs/exlusive-embedding/shiny-ggplot2/shiny-ggplot2/ggplot2/code.txt",
3346+
"test-url": "https://plot.ly/~TestBot/406",
33443347
"type": "model",
33453348
"url": "https://plot.ly/~TestBot/406"
33463349
}
@@ -3756,9 +3759,12 @@
37563759
"name": "Shiny Example Placeholder"
37573760
},
37583761
"id": "shiny-r",
3762+
"image": true,
37593763
"is_leaf": true,
37603764
"path": "hard-coded/get-requests-and-images/shiny-r/shiny-r",
37613765
"r": "auto-docs/get-requests-and-images/shiny-r/shiny-r/r/code.txt",
3766+
"test-r": "test-published/api-docs/get-requests-and-images/shiny-r/shiny-r/r/code.txt",
3767+
"test-url": "https://plot.ly/~TestBot/405",
37623768
"type": "model",
37633769
"url": "https://plot.ly/~TestBot/405"
37643770
}

0 commit comments

Comments
 (0)