We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ab286b9 + ec1ce49 commit ffb7f9aCopy full SHA for ffb7f9a
1 file changed
R/gg_partial.R
@@ -104,7 +104,10 @@ gg_partial <- function(part_dta,
104
}
105
## Optionally attach a model label (useful when overlaying multiple forests)
106
if (!is.null(model)) {
107
- continuous$model <- categorical$model <- model
+ continuous$model <- model
108
+ if(!is.null(categorical) && nrow(categorical) > 0) {
109
+ categorical$model <- model
110
+ }
111
112
113
return(list(continuous = continuous, categorical = categorical))
0 commit comments