简体   繁体   English

如何将 R Plotly 图从 GitHub 嵌入到 Medium

[英]How to embed R Plotly graph from GitHub into Medium

ChartStudio does this easily. ChartStudio 很容易做到这一点。 However, the chart is editable by anyone.但是,任何人都可以编辑图表。 Is there a way to host the graph in github and deploy it as github pages and then embed it into a Medium.com article?有没有办法在 github 中托管图形并将其部署为 github 页面,然后将其嵌入到 Medium.com 文章中? Tables and codes can easily be embedded by copying the url of github gist that contains the table/codes.通过复制包含表/代码的 github gist 的 url,可以轻松嵌入表和代码。

If they are public, GitHub pages can of course be easily integrated anywhere.如果它们是公开的,GitHub 页面当然可以轻松集成到任何地方。

One option is to create a markdown page and integrate an object in there (fe an image) at github.com.一种选择是在 github.com 上创建一个降价页面并在其中集成一个对象(fe 图像)。 You can upload it onto the page or do so via clipboard of your computer.您可以将其上传到页面上,也可以通过计算机的剪贴板上传。 As next, you give it a name, fe stackoverflow_001.md and save it.接下来,你给它一个名字,fe stackoverflow_001.md 并保存它。 You can find an example here: Markdown page with an image .你可以在这里找到一个例子: Markdown page with an image

This URL can be used at medium.com in case you write an article.如果您撰写文章,可以在 medium.com 上使用此 URL。 During your writing process, you add an embed at your article and paste in exactly this URL - that's it.在你的写作过程中,你在你的文章中添加一个嵌入并粘贴到这个 URL - 就是这样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM