全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
2520 0
2009-02-24

我在使用中发现市面上的S-Plus 8.04 破解版有一个问题,就是对这个函数locator()好像不起作用,同时对很多S语言本来的交互式操作也不支持,不知道诸位有没有碰到同样的问题,希望高手指点!!!!!!!!!谢谢了!

具体可以使用如下的代码测试:

library(MASS)

lung.deaths <- aggregate(ts.union(mdeaths, fdeaths), 1)

barplot(t(lung.deaths), names = dimnames(lung.deaths)[[1]],
     main = "UK deaths from lung disease")

legend(locator(1), c("Males", "Females"), fill = c(2, 3))

问题出在最后的一行代码,也就是这里的交互式操作函数locator是无效的,自然也无法显示相应的Legend. 这是<<Mordern Applied Statistic with S>>中的一段代码,

[此贴子已经被作者于2009-2-24 10:55:39编辑过]

二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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