【问题标题】:graphics window not working properly in `kml` package图形窗口在“kml”包中无法正常工作
【发布时间】:2020-06-15 00:44:01
【问题描述】:

我开始使用包kml 来执行纵向聚类分析。该软件包声称有一个交互式图形窗口,可让您探索kml 找到的聚类。可以通过调用函数choice 打开窗口(根据文档)。

但是:那个窗口没有打开。相反,我得到一个错误:

Error in setGraphicsEventEnv(which, as.environment(list(...))) : this graphics device does not support event handling


来自文档?choice

At first, choice opens a graphics window (for Linux user, the windows should be explicitly open using x11(type = "Xlib")).

注意:我使用的是 Windows 10,R3.6.3


小例子:

cld <- generateArtificialLongData(25)
kml(cld,3)
choice(cld)

  • 我错过了什么?
  • 如何打开那个图形窗口?

【问题讨论】:

  • x11(type = "Xlib"); choice(cld)
  • @cuttlefish44:谢谢,就是这样。

标签: r cluster-analysis k-means


【解决方案1】:

我认为在 package 的说明中,它提到“对于 Linux 用户,应该使用 x11(type = "Xlib") 显式打开窗口”。因此,如果您不是 Linux 用户,则它不能正常工作。

【讨论】:

猜你喜欢
  • 2021-08-02
  • 2023-03-09
  • 2021-11-04
  • 2017-08-20
  • 2013-07-07
  • 1970-01-01
  • 2013-04-22
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多