Это мой код
p <- ggplot(data=predicted.data, aes(x=rank, y=probability.of.edu)) +
geom_point(aes(color=edu), shape=4, stroke=2, size=5) +
xlab("Index") +
ylab("Predicted probability of education dependence")
p
Переменная edu
двоичная со значениями 0, 1.
Результат выглядит так:
I want to change legend title, and legend values.
It will be like:
введите описание изображения здесь