-
Notifications
You must be signed in to change notification settings - Fork 50
add what about dash section #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
81dd62c
5b918fb
e37a4e7
824bdaa
688c6ac
d02192d
91b77bc
cf48fbf
3e5697a
32c0aa3
712e7c9
05aaaa7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,23 @@ | ||||||
|
||||||
### What About Dash? | ||||||
|
||||||
DashR is an open-source framework for building analytical applications, with no Javascript required, and it is tightly integrated with the Plotly graphing library. Everywhere in this page that you see fig, you can display the same figure in a Dash application by passing it to the figure argument of the Graph component from the built-in dashCoreComponents package like this: | ||||||
|
||||||
```{r eval=FALSE} | ||||||
library(plotly) | ||||||
|
||||||
fig <- plot_ly() | ||||||
# fig <- fig %>% add_trace( ... ) | ||||||
# fig <- fig %>% layout( ... ) | ||||||
|
||||||
library(dash) | ||||||
library(dashCoreComponents) | ||||||
library(dashHtmlComponents) | ||||||
|
||||||
app <- Dash$new() | ||||||
app$layout ( | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. missing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if not, we should remove the space before the |
||||||
dccGraph(figure=fig) | ||||||
jdamiba marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
) | ||||||
|
||||||
app$run_server() | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you'll want some links and backticks etc in this paragraph too :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also "Dash for R" rather than DashR