如何在远程 ssh 连接中本地制作 R 绘图? [英] How can I make R plot locally in a remote ssh connection?

查看:30
本文介绍了如何在远程 ssh 连接中本地制作 R 绘图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在通过 ssh 连接到我在 VIM 中设置了 R 的远程计算机.我在两边都使用 ubuntu.

I'm currently connection via ssh to a remote computer where I have R set up in VIM. I'm using ubuntu on both sides.

当我尝试从 R 绘制某些内容时,它会出现在远程机器上而不是本地机器上.有什么办法可以让我在本地制作 R 图吗?

When I try to plot something from R it will appear on the remote machine rather than the local. Is there any way I can make R plot locally instead?

推荐答案

您可以使用带有 -X 开关的 SSH 将图形参数转发到您的本地机器.

You can use SSH with the -X switch to forward graphical parameters to your local machine.

这篇关于如何在远程 ssh 连接中本地制作 R 绘图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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