全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
7525 1
2015-06-18
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
有哪位大神知道是什么错误吗?求教!

二维码

扫码加我 拉你入群

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

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

全部回复
2016-2-28 21:22:53
我也遇到了同样的问题,楼主解决了没有
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群