ggpairs中的点太大了。如何缩小尺寸?
最佳答案
这基本上需要阅读帮助页面并完成示例。事实证明,(至少)两组可能影响点大小的不同属性。在下面,您将看到我发现的两个。
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
关于r - 更改/减少点大小(GGally和ggpairs),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/36531906/