Hello everyone!
I am developing an R Markdown (Rmd) script in which I need to create ggplot2 plots using the facet_wrap
and geom_jitter
parameters. After creating each plot in a different chunk, the resulting plot is being displayed in the Viewer panel of RStudio. It is not showing in the chunk output, even though I have added the parameters "fig.show='hold'" and "echo=TRUE" to the chunk configuration. (I have also added them to the YAML configuration in the Rmd).
As another peculiar detail, when I try to run ggplotly
on this plot, the final configuration changes and distorts the entire graph, making it hard to interpret.
I have also attempted to remove the plots from memory using dev.off()
and graphics.off()
, but that did not change anything.
As a last option, I reviewed the general chunk options in the Rmd, and "Chunk Output Inline" was selected, along with "Preview Images and Equations" and "Show Previews Inline".
I would appreciate any help.
Thanks!
Best,
E.