View source: R/PlotSymptomsGenerateGraph.R
Code to generate a downloadable file containing plot (downloaHandler) to download using a button.
1 2 | downloadPlot(filename = "plot.eps", plotFunction, width, height,
print = FALSE)
|
filename |
Suggested file name. |
plotFunction |
The function that plots the graph (can be reactive). |
width |
Width of the plot in pixels. |
height |
Height of plot in pixels. |
print |
Whether to use print() function or not. Needed with ggplot objects and not with base plots? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.