2017-12-11 10 views

答えて

1

あなたはgeom_segmentを使用することができます。

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

関連する問題