2017-05-31 58 views
0

這裏是我的ggplot命令:爲什麼散點圖如此之大?

ggplot(data,aes(x=first,y=Grade,col=factor(Stage))) + 
    geom_point(size = 1) + 
    geom_jitter() + 
    facet_wrap(~ Assignment) 

它產生這樣一個地塊一個的b一堆,但要注意的點是如何太大。我已經嘗試在不同的地方添加size =,這隻會讓點更大!思考?

enter image description here

+4

你只需要使用geom_jitter的一個或geom_point – rawr

+1

另外,你有沒有試過小數大小像'規模= 0.1'或利用阿爾法透明度,例如'阿爾法= .3'?看看這些策略http://ggplot2.tidyverse.org/reference/geom_point.html#overplotting – lukeA

+0

@rawr:intersting,所以geom_jitter就像geom_point,除了它抖動? – pitosalas

回答

0

這做到了:

ggplot(data,aes(x=first,y=Grade,col=factor(Stage))) + 
    geom_jitter(size= 0.5) + 
    facet_wrap(~ Assignment) 
相關問題