1
我R代碼裏面繪製上述圖表
p <- ggplot() +
geom_point(data=data2, aes(x=df, y=dn, size=avgdice^3, fill = log2(tsSTDCommoncrawl)), shape=21)
p <- p + xlab("document fraction between commoncrawl and directcrawl") +
ylab("document number in commoncrawl") +
labs(fill="timestamp \nvariance",size ="average \ndice value")
所以size
和fill
在代碼被縮放。但我希望圖表右側的圖例顯示avgdice
和tsSTDCommoncrawl
的原始值,而不是avgdice^3
和log2(tsSTDCommoncrawl)
值。