2017-12-11 6 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