我在使用中发现市面上的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编辑过]