Nothing
#'Custom download handler for plots
#'
#'@param name output file name
#'@param plot_obj a plot object to be downloaded
#'
#'
#'@return a \code{ggpubr} plot object
#'
#'@author Boris Hejblum
#'
#'@keywords internal
#'
#'@import ggplot2
#'@import ggpubr
#'@importFrom grDevices dev.off png
myDownloadHandlerForPlots <- function(name, plot_obj, outputArgs = list()){
downloadHandler(
filename = name,
content = function(file){
png(file, height = 10,width = 12,res = 300,units = "in")
print(plot_obj)
dev.off()
},
outputArgs = outputArgs
)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.