Re: R code block with Cairo graphics

2025-04-17 Thread Christian Moe
Hi, Naresh, I haven't really explored cairo myself, so I hope users with more experience will chip in / correct me. I've tested that the below works, but I can't really visually distinguish the results with cairo from the ones without. Naresh Gurbuxani writes: > For cairo, I used this header an

Re: R code block with Cairo graphics

2025-04-16 Thread Naresh Gurbuxani
For cairo, I used this header and same code as below. #+begin_src R :exports results :results output :type cairo Running code block gives this output. #+RESULTS: : null device : 1 Now I can insert a link using [[file:figures/cairoplot.png]] Is it possible to input file name as heade

Re: R code block with Cairo graphics

2025-04-16 Thread Christian Moe
Try this: :type cairo See: https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html Yours, Christian Naresh Gurbuxani writes: > How can I set up a code block which uses R code to output a cairo > graphics file? In below example, code block for simple R graph uses > header argumen

R code block with Cairo graphics

2025-04-16 Thread Naresh Gurbuxani
How can I set up a code block which uses R code to output a cairo graphics file? In below example, code block for simple R graph uses header argument to input filename. Is it possible to create a similar set up when cairo is used? When exported to pdf, my graphs look similar with and without c