# Problem in plot when use RCall package

**URL:** <https://discourse.julialang.org/t/problem-in-plot-when-use-rcall-package/73798>\
**Category:** General Usage\
**Tags:** question, package, jupyter, rcall\
**Created:** [December 30, 2021, 12:51am UTC](https://discourse.julialang.org/t/problem-in-plot-when-use-rcall-package/73798 "2021-12-30T00:51:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maoc](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@maoc](https://discourse.julialang.org/u/maoc)\
**Post date:** [December 30, 2021, 12:51am UTC](https://discourse.julialang.org/t/problem-in-plot-when-use-rcall-package/73798/1 "2021-12-30T00:51:06Z")

</div>

This question is not necessarily a question related to the julia language, but rather to the RCall package. I don’t know if the problem is with RCall or jupyter notebook either. I need to use Julia and R on the same notebook. In Rstudio the following script works perfectly:

> #install.packages(‘fpp3’)  
> library(“fpp3”)  
> global\_economy %\>%  
> filter(Code == “CAF”) %\>%  
> gg\_tsdisplay(difference(Exports), plot\_type=‘partial’)

 ![image](https://global.discourse-cdn.com/julialang/original/3X/0/d/0d3fd60b3927d61ed0b38eac03cd8fa50f02d475.png)

But wen I use the Rcall:

> R"“”  
> global\_economy %\>%  
> filter(Code == “CAF”) %\>%  
> gg\_tsdisplay(difference(Exports), plot\_type=‘partial’)  
> “”"

I get the incomplete plot:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/3/d/3d7c28ea40474a306e693ad5d3392608a76fc037.png)

Some help?

---

<div class="post-metadata">

**Author:** ![TheCedarPrince](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thecedarprince/32/17323_2.png) [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Post date:** [December 30, 2021, 3:17am UTC](https://discourse.julialang.org/t/problem-in-plot-when-use-rcall-package/73798/2 "2021-12-30T03:17:08Z")

</div>

Strange!  
Would you be able to post your entire code here for the script you are using?  
I could take a look potentially.

---

<div class="post-metadata">

**Author:** ![maoc](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@maoc](https://discourse.julialang.org/u/maoc)\
**Post date:** [December 30, 2021, 3:27am UTC](https://discourse.julialang.org/t/problem-in-plot-when-use-rcall-package/73798/3 "2021-12-30T03:27:16Z")

</div>

You can add just

> install.packages(‘fpp3’)  
> library(“fpp3”)

inside the RCall script. It is sufficient to replicate the outputs.
