Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在R演示幻灯片中放置图像?_R_Shiny - Fatal编程技术网

如何在R演示幻灯片中放置图像?

如何在R演示幻灯片中放置图像?,r,shiny,R,Shiny,我想问一下,在R演示文稿(.Rpres)幻灯片中使用的图像(.png)应该放在哪里?我试过使用这个代码 ![My test image]("~/Desktop/presentation/coshinyApp/videoButton.png") 但是图像没有显示出来 谢谢一个更好的解决方案,最适合我嵌入图像。 为了清晰起见,请确保将png/jpg与演示文稿放在同一文件夹中 ```{r, echo=FALSE} knitr::include_graphics('./Capture-Outp

我想问一下,在R演示文稿(.Rpres)幻灯片中使用的图像(.png)应该放在哪里?我试过使用这个代码

 ![My test image]("~/Desktop/presentation/coshinyApp/videoButton.png")
但是图像没有显示出来


谢谢

一个更好的解决方案,最适合我嵌入图像。 为了清晰起见,请确保将png/jpg与演示文稿放在同一文件夹中

```{r, echo=FALSE}
   knitr::include_graphics('./Capture-Output.png')
```

它也可以从RStudio的菜单中访问,但这里有一个。请参阅第2页,左栏,靠近RStudio图标(+1@rawr)。@rawr和Vincent:感谢各位的回复和帮助。我现在已经开始工作了。干杯