6. scatter plot
두 변수 모두 Continuous 변수를 넣되, size, shape 등을 자유롭게 바꿀 수 있습니다.
xxxxxxxxxxggplot(STOCK) +geom_point(aes(x = Open, y = Stock.Trading,col = High, size = log(Volume), shape = Year)) +scale_color_gradient(low = "#CCE5FF", high = "#FF00FF") +scale_shape_manual(values = c(19,20,21,22,23)) +labs(col = "Color", shape = "Shape", size = "Size") +theme_bw()- point에 적용되는 shape는 종류가 여러가지가 있습니다. 인터넷에 shape별 고유번호가 나와 있으니, 참고하시면 좋을 것입니다. (링크 : http://sape.inf.usi.ch/quick-reference/ggplot2/shape)

댓글
댓글 쓰기