Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/gg_partial_df.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
#' Split partial lots into continuous or categorical datasets
#' @param part_dta partial plot data from \code{rfsrc::plot.variable}
#' @param nvars how many of the partial plot variables to calculate
#' @param cat_limit Categorical features are build when there are fewer than

Check warning on line 5 in R/gg_partial_df.R

View workflow job for this annotation

GitHub Actions / lint

file=R/gg_partial_df.R,line=5,col=77,[trailing_whitespace_linter] Remove trailing whitespace.
#' cat_limit unique features.
#' @param name a label name applied to all features. Useful when combining

Check warning on line 7 in R/gg_partial_df.R

View workflow job for this annotation

GitHub Actions / lint

file=R/gg_partial_df.R,line=7,col=75,[trailing_whitespace_linter] Remove trailing whitespace.
#' multiple partial plot objects in figures.
#'

Check warning on line 9 in R/gg_partial_df.R

View workflow job for this annotation

GitHub Actions / lint

file=R/gg_partial_df.R,line=9,col=3,[trailing_whitespace_linter] Remove trailing whitespace.
#' @export
df_partial = function(part_dta, nvars = NULL, cat_limit = 10, name=NULL) {
gg_partial_df = function(part_dta, nvars = NULL, cat_limit = 10, name=NULL) {

Check warning on line 11 in R/gg_partial_df.R

View workflow job for this annotation

GitHub Actions / lint

file=R/gg_partial_df.R,line=11,col=15,[assignment_linter] Use one of <-, <<- for assignment, not =.
## Prepare the partial dependencies data for panel plots
if (is.null(nvars)) {
nvars = length(part_dta$plotthis)
Expand Down
4 changes: 2 additions & 2 deletions R/gg_partialpro_df.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
##=============================================================================
##=============================================================================
#' Split partial lots into continuous or categorical datasets
#' @param part_dta partial plot data from \code{rfsrc::plot.variable}
#' @param part_dta partial plot data from \code{varpro::partialpro}
#' @param nvars how many of the partial plot variables to calculate
#' @param cat_limit Categorical features are build when there are fewer than
#' cat_limit unique features.
Expand All @@ -10,7 +10,7 @@
#'
#' @export
#'
df_partialpro = function(part_dta, nvars = NULL, cat_limit=12, name=NULL) {
gg_partialpro_df = function(part_dta, nvars = NULL, cat_limit=10, name=NULL) {
## Prepare the partial pro dependencies data for panel plots
if (is.null(nvars)) {
nvars = length(part_dta)
Expand Down
Loading