Server function for plot export
plotExportServer.Rd
Backend for plot export module
Arguments
- id
namespace id
- plotFun
(reactive) a reactive function returning a plot for export
- plotType
(character) one of "none", "ggplot", "ggplot_only_titles". Adds the option to format titles and ranges of a plot within the export UI (currently only for ggplots). For
plotType == "ggplot_only_titles"
only titles can be adjusted. This prevents that custom formatting of axis ranges might be overwritten byformatScalesOfGGplot()
.- filename
(character) name of file without file extension
- plotly
(logical) set TRUE if plotFun returns a plotly output
- plotWidth
(reactive) default plot width
- plotHeight
(reactive) default plot height
- initText
(list) optional, named list with title definitions, or output of
plotTitlesServer
- initRanges
(list) optional, named list with range definitions, or output of
plotRangesServer