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

Skip to content

Commit 10835fe

Browse files
committed
Ran python run.py process shiny-r shiny-ggplot2.
1 parent 40af0ae commit 10835fe

File tree

6 files changed

+104
-0
lines changed

6 files changed

+104
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
{}

auto-docs/executables/r/shiny_r.r

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
library(plotly)
2+
py <- plotly(username='TestBot', key='r1neazxo9w')
3+
4+
trace1 <- list(
5+
x = c(1, 2, 3, 4),
6+
y = c(1, 4, 9, 16),
7+
name = "$\alpha_{1c} = 352 \pm 11 \text{ km s}^{-1}$",
8+
type = "scatter"
9+
)
10+
trace2 <- list(
11+
x = c(1, 2, 3, 4),
12+
y = c(0.5, 2, 4.5, 8),
13+
name = "$\beta_{1c} = 25 \pm 11 \text{ km s}^{-1}$",
14+
type = "scatter"
15+
)
16+
data <- list(trace1, trace2)
17+
layout <- list(
18+
xaxis = list(title = "$\sqrt{(n_\text{c}(t|{T_\text{early}}))}$"),
19+
yaxis = list(title = "$d, r \text{ (solar radius)}$")
20+
)
21+
response <- py$plotly(data, kwargs=list(layout=layout, filename="shiny-r", fileopt="overwrite"))
22+
url <- response$url
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 &lt;- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})
5+
6+
trace1 &lt;- 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 &lt;- 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 &lt;- list(trace1, trace2)
19+
layout &lt;- 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 &lt;- py$plotly(data, kwargs=list(layout=layout, filename="shiny-r", fileopt="overwrite"))
24+
url &lt;- response$url

ids.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@
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",

tree.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3327,6 +3327,32 @@
33273327
"id": "iframes-exlusive",
33283328
"is_leaf": false,
33293329
"path": "hard-coded/exlusive-embedding/iframes-exlusive"
3330+
},
3331+
"shiny-ggplot2": {
3332+
"branches": {
3333+
"shiny-ggplot2": {
3334+
"config": {
3335+
"languages": [
3336+
"ggplot2"
3337+
],
3338+
"name": "Shiny Example Placeholder"
3339+
},
3340+
"ggplot2": "auto-docs/exlusive-embedding/shiny-ggplot2/shiny-ggplot2/ggplot2/code.txt",
3341+
"id": "shiny-ggplot2",
3342+
"is_leaf": true,
3343+
"path": "hard-coded/exlusive-embedding/shiny-ggplot2/shiny-ggplot2",
3344+
"type": "model",
3345+
"url": "https://plot.ly/~TestBot/406"
3346+
}
3347+
},
3348+
"config": {
3349+
"has_thumbnail": false,
3350+
"name": "Getting Started with Shiny and Plotly",
3351+
"relative_url": "shiny-tutorial"
3352+
},
3353+
"id": "shiny-ggplot2",
3354+
"is_leaf": false,
3355+
"path": "hard-coded/exlusive-embedding/shiny-ggplot2"
33303356
}
33313357
},
33323358
"config": {
@@ -3720,6 +3746,32 @@
37203746
"is_leaf": false,
37213747
"path": "hard-coded/get-requests-and-images/iframes"
37223748
},
3749+
"shiny-r": {
3750+
"branches": {
3751+
"shiny-r": {
3752+
"config": {
3753+
"languages": [
3754+
"r"
3755+
],
3756+
"name": "Shiny Example Placeholder"
3757+
},
3758+
"id": "shiny-r",
3759+
"is_leaf": true,
3760+
"path": "hard-coded/get-requests-and-images/shiny-r/shiny-r",
3761+
"r": "auto-docs/get-requests-and-images/shiny-r/shiny-r/r/code.txt",
3762+
"type": "model",
3763+
"url": "https://plot.ly/~TestBot/405"
3764+
}
3765+
},
3766+
"config": {
3767+
"has_thumbnail": false,
3768+
"name": "Getting Started with Shiny and Plotly",
3769+
"relative_url": "shiny-tutorial"
3770+
},
3771+
"id": "shiny-r",
3772+
"is_leaf": false,
3773+
"path": "hard-coded/get-requests-and-images/shiny-r"
3774+
},
37233775
"static-image": {
37243776
"branches": {
37253777
"static-image-example": {

0 commit comments

Comments
 (0)