2

I am new in R and getting output(images/ interactive plots) displayed by some packages in viewer pane. I would rather like them to be displayed in the ramrkdown notebook.

Here is an example, using magick::image_read() which displays image in viewer pane and not inline:

enter image description here

Reference link where a knitted document has produced images within the notebook using same package as I have used: https://cran.r-project.org/web/packages/magick/vignettes/intro.html

Below are the settings I am using:

enter image description here

enter image description here

Have asked similar question on keras package earlier How to make plots appear in Rmarkdown file instead of viewer pane when working with keras in Rstudio?

This is happening with some of the packages, how do I make these images/plots appear inline ?

ViSa
  • 1,563
  • 8
  • 30
  • Have you tried https://stackoverflow.com/questions/43139460/add-inline-image-in-rmarkdown ? – Ronak Shah Nov 07 '20 at 08:23
  • @RonakShah I saw this post but they have used `![](images.png?display=inline-block)` to display saved images whereas I am trying to produce images/plots inside Rmardown that should display inside Rmarkdown files.How can I use `![](images.png?display=inline-block)` with `image_read("../Cars_n_planes_images/c1.jpg")` or keras `fit()` that generates display in `Viewer` pane ? – ViSa Nov 07 '20 at 08:38

0 Answers0