Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #249 allow data expansion to axes #251

Merged

Conversation

pchelle
Copy link
Collaborator

@pchelle pchelle commented Apr 29, 2022

Default value for ddi ratio is TRUE

#' }
#' @keywords internal
xAxisDefaultExpand <- function(plotConfiguration) {
return(isOfType(plotConfiguration, c("DDIRatioPlotConfiguration")))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we define a const for "DDIRatioPlotConfiguration" and use it here (and below) and in the class definition?

DDIRatioPlotConfiguration <- R6::R6Class(
"DDIRatioPlotConfiguration",
inherit = PlotConfiguration

Alternatively: add tests, checking that xAxisDefaultExpand(DDIRatioPlotConfiguration$new()) and yAxisDefaultExpand(DDIRatioPlotConfiguration$new()) returns true and for other config types returns false

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we define a const for "DDIRatioPlotConfiguration" and use it here (and below) and in the class definition?

I love this idea !

@Yuri05 Yuri05 merged commit 2cbd8ad into Open-Systems-Pharmacology:develop May 2, 2022
@pchelle pchelle deleted the 249_axes_expansion branch February 15, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants