R's kml中"choice"的输出 [英] Output from 'choice' in R's kml

查看:93
本文介绍了R's kml中"choice"的输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在获取选择"来创建输出时遇到了麻烦.当图形界面启动时,我正在使用空格键选择一个分区.这会在分区周围创建一个黑色圆圈,表明已被选中.当我单击返回"时,什么也没有发生.

I'm having trouble getting 'choice' to create output. When the graphical interface launches, I am selecting a partition with the space bar. This creates a black circle around the partition, indicating it has been selected. When I click 'return', nothing happens.

我检查了我的工作目录以查找输出文件,但它们不存在.我使用getwd()来确保我具有正确的setwd().没有骰子.

I checked my working directory to look for the output files, but they are not there. I used getwd() to ensure that I have the correct setwd(). No dice.

发布了类似的问题:从R中的kml软件包导出结果;但是,答案对我不起作用.

There was a similar question posted: Exporting result from kml package in R; however, the answer does not work for me.

有什么建议吗?我正在使用R 3.1.0 GUI Mavericks build(6734)和XQuartz 2.7.6.感谢您为使此工作正常进行提供的帮助.

Any suggestions? I am using R 3.1.0 GUI Mavericks build(6734) and XQuartz 2.7.6. Thanks for any help getting this working.

这是我的代码:

setwd("/Users/eightfrench")

mydata <- read.csv("hcris_long3.csv")

cldHCRIS <- clusterLongData(traj=mydata)

kml(cldHCRIS,nbClusters=2:4,nbRedrawing=2,toPlot="both")

X11(type="Xlib")

choice(cldHCRIS, typeGraph= "bmp")

推荐答案

新版本的kml(2.3)修复了该问题,它还提供了使用linux导出数据的密钥(因为getGraphicsEvent不接受"return"使用linux,所以我必须映射另一个键:'m')

The new version of kml (2.3) fix that, it provide a key to export data with linux as well (not "return" since getGraphicsEvent does not accept "return" using linux, so I have to map another key : 'm')

克里斯托夫

这篇关于R's kml中"choice"的输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆