qpr_plotly provides a boilerplate QPR plotly call that can be modified with the function inputs for each specific tabitem.
The plotly::plot_ly & plotly::layout function arguments were created by comparing all QPR server code sections to determine which arguments changed the most frequently. Those that changed the most frequently can be provided as arguments to qpr_plotly directly.
The arguments that change less frequently (such as some of those to layout) can be provided as named lists using the ....
The function is documented and provides an overview of the default layout options in the examples and describes how to modify those using the function.
Server logic
The mod_QPR_server module has been modified to be tabItem agnostic. The data preparation and plot generation steps are now provided in the form of expressions in additional R script files with associated names.
qpr_expr_LoS.R has the data prep and plot generation code expressions. LoS is currently the first completed and tested-to-be-working module.
The server logic will now allow us to create additional qprexpr[...].R files that will contain the code necessary to render each QPR graph.
Note: the graph title object must now be appended as an attribute to the output tibble from the expr data preparation code
Debugging and modification of graphs can be tested within these scripts provided that the Rminor.RData is loaded.
qpr_plotly
qpr_plotly
provides a boilerplate QPRplotly
call that can be modified with the function inputs for each specific tabitem.The
plotly::plot_ly
&plotly::layout
function arguments were created by comparing all QPR server code sections to determine which arguments changed the most frequently. Those that changed the most frequently can be provided as arguments toqpr_plotly
directly. The arguments that change less frequently (such as some of those to layout) can be provided as named lists using the...
.The function is documented and provides an overview of the default
layout
options in the examples and describes how to modify those using the function.Server logic
The mod_QPR_server module has been modified to be tabItem agnostic. The data preparation and plot generation steps are now provided in the form of expressions in additional R script files with associated names.
qpr_expr_LoS.R has the data prep and plot generation code expressions. LoS is currently the first completed and tested-to-be-working module.
The server logic will now allow us to create additional qprexpr[...].R files that will contain the code necessary to render each QPR graph. Note: the graph
title
object must now be appended as an attribute to the output tibble from theexpr
data preparation codeDebugging and modification of graphs can be tested within these scripts provided that the Rminor.RData is loaded.