forked from Open-Systems-Pharmacology/TLF-Library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes Open-Systems-Pharmacology#301 Helper function to get lines from…
… fold distance values (Open-Systems-Pharmacology#302) * Fixes Open-Systems-Pharmacology#301 Helper function to get lines from fold distance values * Update news, doc and style * Update NEWS.md * Update NEWS.md Co-authored-by: Indrajeet Patil <patilindrajeet.science@gmail.com>
- Loading branch information
1 parent
c51672c
commit 8a57cdc
Showing
19 changed files
with
371 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
#' @title ObsVsPredDataMapping | ||
#' @description Class for mapping variables in observations vs predictions plot | ||
#' @export | ||
#' @family DataMapping classes | ||
ObsVsPredDataMapping <- R6::R6Class( | ||
"ObsVsPredDataMapping", | ||
inherit = PKRatioDataMapping, | ||
public = list( | ||
#' @field smoother regression function name | ||
smoother = NULL, | ||
|
||
#' @description Create a new `ObsVsPredDataMapping` object | ||
#' @param lines list of lines to plot | ||
#' @param smoother smoother function or parameter | ||
#' To map a loess smoother to the plot, use `smoother`="loess" | ||
#' @param ... parameters inherited from `XYGDataMapping` | ||
#' @return A new `ObsVsPredDataMapping` object | ||
initialize = function(lines = DefaultDataMappingValues$obsVsPred, | ||
smoother = NULL, | ||
...) { | ||
validateIsIncluded(smoother, c("lm", "loess"), nullAllowed = TRUE) | ||
|
||
super$initialize(...) | ||
self$lines <- lines | ||
self$smoother <- smoother | ||
} | ||
) | ||
) | ||
|
||
#' @title ResVsPredDataMapping | ||
#' @description Class for mapping variables in residuals vs predictions/time plot | ||
#' @export | ||
#' @family DataMapping classes | ||
ResVsPredDataMapping <- R6::R6Class( | ||
"ResVsPredDataMapping", | ||
inherit = ObsVsPredDataMapping | ||
) | ||
#' @title ObsVsPredDataMapping | ||
#' @description Class for mapping variables in observations vs predictions plot | ||
#' @export | ||
#' @family DataMapping classes | ||
ObsVsPredDataMapping <- R6::R6Class( | ||
"ObsVsPredDataMapping", | ||
inherit = PKRatioDataMapping, | ||
public = list( | ||
#' @field smoother regression function name | ||
smoother = NULL, | ||
|
||
#' @description Create a new `ObsVsPredDataMapping` object | ||
#' @param lines list of lines to plot | ||
#' @param smoother smoother function or parameter | ||
#' To map a loess smoother to the plot, use `smoother`="loess" | ||
#' @param ... parameters inherited from `XYGDataMapping` | ||
#' @return A new `ObsVsPredDataMapping` object | ||
initialize = function(lines = DefaultDataMappingValues$obsVsPred, | ||
smoother = NULL, | ||
...) { | ||
validateIsIncluded(smoother, c("lm", "loess"), nullAllowed = TRUE) | ||
|
||
super$initialize(...) | ||
self$lines <- lines | ||
self$smoother <- smoother | ||
} | ||
) | ||
) | ||
|
||
#' @title ResVsPredDataMapping | ||
#' @description Class for mapping variables in residuals vs predictions/time plot | ||
#' @export | ||
#' @family DataMapping classes | ||
ResVsPredDataMapping <- R6::R6Class( | ||
"ResVsPredDataMapping", | ||
inherit = ObsVsPredDataMapping | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.