How to embed the plotting of ggplot into other software ?

45 views
Skip to first unread message

Jeff Zhang

unread,
Dec 22, 2017, 9:03:55 AM12/22/17
to ggplot2

Just like RStudio can embed the plotting of ggplot to itself, I also want to embed that into other software, does anyone know how to do that ? What is the exact output of ggplot ? Thanks

Kieron Scully

unread,
Dec 22, 2017, 9:36:56 AM12/22/17
to ggplot2
Excel.link uses the image file export feature (so it takes the ggplot canvas and uses the normal png etc export command to pass it through to excel. Works surprisingly well). Plotly/htmlwidgets might be more what you want though, you could write a UI in javascript. If you want to know how the ggplot2 API works, you'd be best off looking at the documentation for the ggplot2 API. Here's a semi-decent article that goes over some stuff: https://www.data-imaginist.com/2017/beneath-the-canvas/

Jeff Zhang

unread,
Dec 23, 2017, 8:01:43 AM12/23/17
to ggplot2
Thanks Kieron,  Do you know how RStudio embed ggplot2 ? 

在 2017年12月22日星期五 UTC+8下午10:36:56,Kieron Scully写道:

Roman Luštrik

unread,
Dec 23, 2017, 8:42:40 AM12/23/17
to Jeff Zhang, ggplot2
Rstudio is an opensource project and the code is available here: https://github.com/rstudio/rstudio

--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
 
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+unsubscribe@googlegroups.com
More options: http://groups.google.com/group/ggplot2

---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
In God we trust, all others bring data.
Reply all
Reply to author
Forward
0 new messages