# R script for Visualization Steps

**URL:** <https://community.exploratory.io/t/r-script-for-visualization-steps/141>\
**Category:** Questions\
**Created:** [September 19, 2016, 5:04pm UTC](https://community.exploratory.io/t/r-script-for-visualization-steps/141 "2016-09-19T17:04:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![1038ee6751cc](https://community.exploratory.io/user_avatar/community.exploratory.io/1038ee6751cc/32/791_2.png) [@1038ee6751cc](https://community.exploratory.io/u/1038ee6751cc)\
**Post date:** [September 19, 2016, 5:04pm UTC](https://community.exploratory.io/t/r-script-for-visualization-steps/141/1 "2016-09-19T17:04:35Z")

</div>

Is there a way to see the underlying ggplot code used to generate the graph?  
[https://exploratory.io/@1038ee6751cc/test1\_549ebf56d23b/test2.npk](https://exploratory.io/@1038ee6751cc/test1_549ebf56d23b/test2.npk)

On the “Generated R Script” it just shows “Data Analysis Steps”, I’m also looking for “Visualization Steps” if that’s possible.

---

<div class="post-metadata">

**Author:** ![Kan\_Nishida](https://community.exploratory.io/user_avatar/community.exploratory.io/kan_nishida/32/14_2.png) [@Kan\_Nishida](https://community.exploratory.io/u/Kan_Nishida)\
**Post date:** [September 20, 2016, 12:19am UTC](https://community.exploratory.io/t/r-script-for-visualization-steps/141/2 "2016-09-20T00:19:15Z")

</div>

There is no ggplot involved in generating the chart. We use dplyr to generate the data and hand it over to JS/Plotly to generate the chart. We have a plan to provide a way to show you the underlying dplyr code to generate the underlying data for the chart as well. Is this something you are looking for?

---

<div class="post-metadata">

**Author:** ![1038ee6751cc](https://community.exploratory.io/user_avatar/community.exploratory.io/1038ee6751cc/32/791_2.png) [@1038ee6751cc](https://community.exploratory.io/u/1038ee6751cc)\
**Post date:** [September 20, 2016, 11:46am UTC](https://community.exploratory.io/t/r-script-for-visualization-steps/141/3 "2016-09-20T11:46:53Z")

</div>

Hi Kan,

I was looking for more like what Deducer is doing where it outputs the ggplot code and also do more customizations like facets.

 ![](https://community.exploratory.io/uploads/default/original/1X/f08876899591d1080b969c0113ce7cdde20d19e0.png)

Will be there be any issues w/ Exploratory on the graphing if it’s used offline (no internet connection) ?

-Karl

---

<div class="post-metadata">

**Author:** ![Kan\_Nishida](https://community.exploratory.io/user_avatar/community.exploratory.io/kan_nishida/32/14_2.png) [@Kan\_Nishida](https://community.exploratory.io/u/Kan_Nishida)\
**Post date:** [September 20, 2016, 2:43pm UTC](https://community.exploratory.io/t/r-script-for-visualization-steps/141/4 "2016-09-20T14:43:16Z")

</div>

Other than Geo Map, you should be able to work with any chart offline. Also, Faceting is coming in one of the near releases!

---

<div class="post-metadata">

**Author:** ![michael\_whitby](https://community.exploratory.io/user_avatar/community.exploratory.io/michael_whitby/32/215_2.png) [@michael\_whitby](https://community.exploratory.io/u/michael_whitby)\
**Post date:** [January 17, 2017, 9:37pm UTC](https://community.exploratory.io/t/r-script-for-visualization-steps/141/5 "2017-01-17T21:37:53Z")

</div>

I realize this is a few months old, but I was looking for a way to generate the R code for the graph. Is this available yet? Whatever method (plotly?) is used is fine, I’m just interested in getting the code.

Thanks.

---

<div class="post-metadata">

**Author:** ![Kan\_Nishida](https://community.exploratory.io/user_avatar/community.exploratory.io/kan_nishida/32/14_2.png) [@Kan\_Nishida](https://community.exploratory.io/u/Kan_Nishida)\
**Post date:** [January 17, 2017, 10:10pm UTC](https://community.exploratory.io/t/r-script-for-visualization-steps/141/6 "2017-01-17T22:10:53Z")

</div>

The charts in Exploratory are generated purely in Java Script, though the underlying data is generated inside R (dplyr). We have a plan to support generating the data part of R code on our roadmap.

---

<div class="post-metadata">

**Author:** ![Aussie\_Haryono](https://community.exploratory.io/user_avatar/community.exploratory.io/aussie_haryono/32/381_2.png) [@Aussie\_Haryono](https://community.exploratory.io/u/Aussie_Haryono)\
**Post date:** [October 24, 2017, 12:22pm UTC](https://community.exploratory.io/t/r-script-for-visualization-steps/141/7 "2017-10-24T12:22:53Z")

</div>

I have been wondering about this as well. It makes sense now that the charts are generated using js, so there is no R script per se.

I think it would be useful to get the underlying R / dplyr script as well. One use case, which is also one of my motivation, is to be able to bring the script into Kaggle Kernels. It’s also a good place to showcase the power of [Exploratory.io](http://Exploratory.io) 😉
