ggvis
要使用包在 R 中绘制以下内容,
代码是
mtcars %>%
ggvis(~wt, ~mpg, fill = ~factor(cyl)) %>%
layer_points() %>%
group_by(cyl) %>%
layer_model_predictions(model = "lm")
如果我将上述更改为fill
,shape
则会出现错误:
Error: Unknown properties: shape.
Did you mean: stroke?
为什么?如何达到预期的结果?