【发布时间】:2013-03-31 06:12:50
【问题描述】:
我想制作一个散点图,其点没有填充(或等效地,使用透明填充)。
# generate some random data for the scatterplot
n <- 5
f <- factor(1:n)
df <- expand.grid(f1 = f, f2 = f)
df <- transform(df, v1 = round(10 * runif(n ** 2)))
# plot the scatterplot
ggplot(df) + geom_point(aes(x = f1, y = f2, size = v1, fill = NA))
将fill 设置为NA 似乎合乎逻辑,但不起作用。我也试过NULL 和"" 无济于事。
【问题讨论】: