楼主: zsunmilez
7594 1

[问答] 错误Aesthetics must either be length one, or the same length as the dataProblem [推广有奖]

  • 0关注
  • 0粉丝

初中生

66%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
189 点
帖子
4
精华
0
在线时间
31 小时
注册时间
2012-11-21
最后登录
2020-3-11

楼主
zsunmilez 发表于 2015-6-18 09:47:35 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
bm.data = rbind(bm.data, cbind(x = x <- x + rnorm(n * grp), y = y <- y + rnorm(n * grp), step = i, group = rep(1:grp, each =                    n), id = rep(1:n, grp)))

print(qplot(x, y, facets = ~group, geom = "line", colour = id, alpha = I(0.1),
+                                data = subset(bm.data, step <= i), main = paste("step", i)) +
+               xlim(range(bm.data$x)) + ylim(range(bm.data$x)) +
+               geom_point(aes(x = x, y = y, facets = ~group, size = I(rep(3, n * grp))),
+                                data = subset(bm.data, step == i)) +
+               theme_bw() + theme(legend.position = "none"))

出现错误:
Don't know how to automatically pick scale for object of type formula. Defaulting to continuous
Don't know how to automatically pick scale for object of type AsIs. Defaulting to continuous
错误: Aesthetics must either be length one, or the same length as the dataProblems:~group
有哪位大神知道是什么错误吗?求教!

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Aesthetics problem length either leng either

沙发
Joanmy 在职认证  发表于 2016-2-28 21:22:53
我也遇到了同样的问题,楼主解决了没有

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-30 03:06