Skip to content

Commit

Permalink
fixed warning with label
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiecek committed Jun 6, 2020
1 parent f3b279c commit 8dcd429
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions R/plot_aggregated_profiles.R
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,7 @@ plot.aggregated_profiles_explainer <- function(x, ...,
# If null add subtitle
if (is.null(subtitle)){
# get model names and classes
model_name <- c()
for (i in seq_along(dfl)){
model_name[i] <- paste(unique(dfl[[i]]$`_label`), collapse = ", ", sep = ",")
}
model_name <- unique(unlist(sapply(dfl, function(tmp) tmp$`_label`)))
subtitle_models <- paste(model_name, collapse = ", ", sep = ",")
subtitle <- paste("Created for the", subtitle_models, "model")
}
Expand Down

0 comments on commit 8dcd429

Please sign in to comment.