-
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
Merged
Merged
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
81dd62c
add what about dash
5b918fb
add dash to dependencies, use cat instead of echo
e37a4e7
new cache
824bdaa
old cache
688c6ac
add newline
d02192d
fix typo
91b77bc
update text
cf48fbf
fix hyperlinks
3e5697a
Update what-about-dash.md
32c0aa3
enable debug mode
712e7c9
update
05aaaa7
Update what-about-dash.md
nicolaskruchten File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
### What About Dash? | ||
|
||
[Dash for R](https://dashr.plot.ly/) is an open-source framework for building analytical applications, with no Javascript required, and it is tightly integrated with the Plotly graphing library. | ||
|
||
Learn about how to install Dash for R at https://dashr.plot.ly/installation. | ||
|
||
Everywhere in this page that you see `fig`, you can display the same figure in a Dash for R application by passing it to the `figure` argument of the [`Graph` component](https://dashr.plot.ly/dash-core-components/graph) 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( | ||
htmlDiv( | ||
list( | ||
dccGraph(figure=fig) | ||
) | ||
) | ||
) | ||
|
||
app$run_server(debug=TRUE, dev_tools_hot_reload=FALSE) | ||
``` |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.