<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to plot in Splunk using R Project in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-plot-in-Splunk-using-R-Project/m-p/120772#M1742</link>
    <description>&lt;P&gt;Can any one help me to get the plot from R on Splunk&lt;/P&gt;

&lt;P&gt;Below is the code, when i run on R along with the output on R&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;X&amp;lt;-C(1,2,3,4,5,6)
plot (x)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="http://answers.splunk.com//storage/SplunkR.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Now how do i use R Project on splunk to execute this sample code from splunk and get the plots on splunk.&lt;/P&gt;

&lt;P&gt;Any help on this will be highly appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jun 2014 12:24:22 GMT</pubDate>
    <dc:creator>harshal_chakran</dc:creator>
    <dc:date>2014-06-26T12:24:22Z</dc:date>
    <item>
      <title>How to plot in Splunk using R Project</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-plot-in-Splunk-using-R-Project/m-p/120772#M1742</link>
      <description>&lt;P&gt;Can any one help me to get the plot from R on Splunk&lt;/P&gt;

&lt;P&gt;Below is the code, when i run on R along with the output on R&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;X&amp;lt;-C(1,2,3,4,5,6)
plot (x)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="http://answers.splunk.com//storage/SplunkR.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Now how do i use R Project on splunk to execute this sample code from splunk and get the plots on splunk.&lt;/P&gt;

&lt;P&gt;Any help on this will be highly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2014 12:24:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-plot-in-Splunk-using-R-Project/m-p/120772#M1742</guid>
      <dc:creator>harshal_chakran</dc:creator>
      <dc:date>2014-06-26T12:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot in Splunk using R Project</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-plot-in-Splunk-using-R-Project/m-p/120773#M1743</link>
      <description>&lt;P&gt;Using the R &lt;CODE&gt;plot&lt;/CODE&gt; function to create charts is not supported.&lt;/P&gt;

&lt;P&gt;You can use the Splunk &lt;CODE&gt;chart&lt;/CODE&gt; command to create charts which can be displayed in Splunk. That requires to pipe all the required data from the &lt;CODE&gt;r&lt;/CODE&gt; command to the &lt;CODE&gt;chart&lt;/CODE&gt; command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | r "..." | chart ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You need to assign a R data frame to a &lt;CODE&gt;output&lt;/CODE&gt; variable. Look &lt;A href="http://www.r-tutor.com/r-introduction/data-frame"&gt;here&lt;/A&gt; how to crate a data frame. All data which is assigned to the output variable is piped to the next command. In the above example, that is the &lt;CODE&gt;chart&lt;/CODE&gt; command.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2014 16:31:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-plot-in-Splunk-using-R-Project/m-p/120773#M1743</guid>
      <dc:creator>rfujara_splunk</dc:creator>
      <dc:date>2014-07-02T16:31:27Z</dc:date>
    </item>
  </channel>
</rss>

