2017-12-11 1 views

Antwort

1

können Sie geom_segment verwenden.

ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width)) + 
    geom_point() + 
    geom_segment(x = 0, xend = 6, y = 3, yend = 3, linetype = 2, color = 'red3') + 
    geom_segment(x = 6, xend = 6, y = 0, yend = 3, linetype = 2, color = 'red3') 

enter image description here

Verwandte Themen