The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
::install_github('alexvpickering/shinydlplot) remotes
Example that renders a plotly
with a download button to
download the iris dataset:
library(shiny)
library(shinyjs)
library(shinydlplot)
library(plotly)
<- fluidPage(
ui useShinyjs(),
downloadablePlotlyUI(id = 'iris_plotly')
)
<- function(input, output, session) {
server
<- plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length)
plot
callModule(downloadablePlotly,
id = 'iris_plotly',
plot = plot,
filename = 'iris.csv',
content = function(file) {write.csv(iris, file)})
}
shinyApp(ui, server)
Example that renders a ggplot2
object with a download
button to download the iris dataset:
library(shiny)
library(shinyjs)
library(shinydlplot)
library(ggplot2)
<- fluidPage(
ui useShinyjs(),
downloadablePlotUI(id = 'iris_plot')
)
<- function(input, output, session) {
server
<- ggplot(iris, aes(x = Sepal.Length, y = Petal.Length)) + geom_point()
plot
callModule(downloadablePlot,
id = 'iris_plot',
plot = plot,
filename = 'iris.csv',
content = function(file) {write.csv(iris, file)})
}
shinyApp(ui, server)
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.