2016-04-10 38 views

答えて

8

これは、基本的にヘルプページを読み、例を使って作業する必要があります。ポイントサイズに影響を及ぼす可能性のある2つの異なる属性セットが(少なくとも)存在することが分かります。下に私が見つけた二つが見えます。

require(ggplot2) 
require(GGally) 
data(diamonds, package="ggplot2") 
diamonds.samp <- diamonds[sample(1:dim(diamonds)[1], 200), ] 

# Custom Example (almost directly from help page) 
pm <- ggpairs(
diamonds.samp[, 1:5], 
mapping = ggplot2::aes(color = cut), 
upper = list(continuous = wrap("density", alpha = 0.5), combo = "box"), 
lower = list(continuous = wrap("points", alpha = 0.3, size=0.1), 
       combo = wrap("dot", alpha = 0.4,   size=0.2)), 
title = "Diamonds" 
) 
pm 
+0

ggpairs(dt [1:2000、26:32]、mapping = ggplot2 :: aes(color = cut) 、: 関数 "wrap"が見つかりませんでした – parvij

+0

'wrap'はパッケージの一部です:GGally、私は説明できませんRとGGallyの現在のバージョンはありますか?R 3.2のGGally_1.2.0で再度テストしました。 3。 –

関連する問題