2
xy <- data.frame(x=1:10, y=10:1, type = rep(LETTERS[1:2], each=5))
plot <- ggplot(data = xy)+
geom_point(aes(x = x, y = y, color=type)) +
theme(legend.position = 'bottom')
plot
Wie können wir den Titel ‚Typ‘ auf der A und B, nicht zu ihrer Linken bekommen?
Dank
Danke! Ich wusste, wie man es mit Opts macht, was für eine Weile veraltet ist. Ich konnte nicht herausfinden, dass die Positionierung innerhalb der Farbe festgelegt ist –