Skip to content

Commit 17c35a0

Browse files
Correct mistake in plot_multi_way_importance for p_value as size
1 parent 7b5aa10 commit 17c35a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/measure_importance.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ plot_multi_way_importance <- function(importance_frame, x_measure = "mean_min_de
236236
labels = c("<0.01", "[0.01, 0.05)", "[0.05, 0.1)", ">=0.1"), right = FALSE)
237237
plot <- ggplot(data, aes_string(x = x_measure, y = y_measure)) +
238238
geom_point(aes_string(color = size_measure), size = 3) +
239-
geom_point(data = data_for_labels, color = "black", stroke = 2, size = 3, aes(fill = "top"), shape = 21) +
239+
geom_point(data = data_for_labels, color = "black", stroke = 2, aes(alpha = "top"), size = 3, shape = 21) +
240240
geom_label_repel(data = data_for_labels, aes(label = variable), show.legend = FALSE) +
241-
theme_bw() + scale_fill_discrete(name = "variable")
241+
theme_bw() + scale_alpha_discrete(name = "variable", range = c(1, 1))
242242
} else {
243243
plot <- ggplot(data, aes_string(x = x_measure, y = y_measure, size = size_measure)) +
244244
geom_point(aes(colour = "black")) + geom_point(data = data_for_labels, aes(colour = "blue")) +

0 commit comments

Comments
 (0)