<?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 Re: two plots on one graph in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/two-plots-on-one-graph/m-p/3086#M3086</link>
    <description>&lt;P&gt;I cannot find a way to do it mannually but it seems to be possible via script. Try this (change to your own column names):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Variables( X( :Month ), Y( :MeanRainfall ), Y( :Rainfall, Position( 1 ) ) ),
	Elements(
		Bar(
			X,
			Y( 1 ),
			Legend( 3 ),
			Row order( 0 ),
			Error Bars( "Standard Error" ),
			Summary Statistic( "Mean" )
		),
		Line(
			X,
			Y( 2 ),
			Legend( 3 ),
			Row order( 0 ),
			Error Bars( "Standard Error" ),
			Summary Statistic( "Mean" )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 13 Aug 2018 17:39:43 GMT</pubDate>
    <dc:creator>ms</dc:creator>
    <dc:date>2018-08-13T17:39:43Z</dc:date>
    <item>
      <title>two plots on one graph</title>
      <link>https://community.jmp.com/t5/Discussions/two-plots-on-one-graph/m-p/3083#M3083</link>
      <description>Hi all - I'm new to JMP's graph builder. I'm sure this is easy but alas...&lt;BR /&gt;&lt;BR /&gt;I need to present two plots on one graph:&lt;BR /&gt;1. bars with s.e. bars (mean long-term rainfall by month)&lt;BR /&gt;2. line (no error bars) rainfall data from a single year, also by month&lt;BR /&gt;&lt;BR /&gt;So, same x and same y axes.&lt;BR /&gt;&lt;BR /&gt;Thanks in anticipation.</description>
      <pubDate>Wed, 16 Mar 2011 05:37:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/two-plots-on-one-graph/m-p/3083#M3083</guid>
      <dc:creator>malurus</dc:creator>
      <dc:date>2011-03-16T05:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: two plots on one graph</title>
      <link>https://community.jmp.com/t5/Discussions/two-plots-on-one-graph/m-p/3084#M3084</link>
      <description>Malurus,&lt;BR /&gt;&lt;BR /&gt;Can you give us a bit on where you're getting stuck?&lt;BR /&gt;&lt;BR /&gt;You may have more luck with the Overlay plot platform, which lets you plot two y-variables with the same x variable.</description>
      <pubDate>Wed, 16 Mar 2011 17:28:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/two-plots-on-one-graph/m-p/3084#M3084</guid>
      <dc:creator />
      <dc:date>2011-03-16T17:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: two plots on one graph</title>
      <link>https://community.jmp.com/t5/Discussions/two-plots-on-one-graph/m-p/3085#M3085</link>
      <description>Thanks Eugene,&lt;BR /&gt;Here is the work flow (keeping the rainfall example going):&lt;BR /&gt;1) drag month onto x&lt;BR /&gt;2) drag long-term rainfall data on y&lt;BR /&gt;3) right click points -&amp;gt; change to bar&lt;BR /&gt;4) right click bar -&amp;gt; add -&amp;gt; error bars -&amp;gt; standard error&lt;BR /&gt;&lt;B&gt;So far so good. But, this is where I get stuck:&lt;/B&gt;&lt;BR /&gt;5) drag rainfall data from a single year (the one I want to be represented by a line) onto the y axis and it displays as a second bar series, (and also adds error bars of 0)&lt;BR /&gt;6) if I right click on the second series -&amp;gt; bar -&amp;gt; change to line, both series get changed to line&lt;BR /&gt;So my question is how do I change just one series to line (with no se bars), while keeping the other as bars (with se bars)?</description>
      <pubDate>Thu, 17 Mar 2011 00:22:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/two-plots-on-one-graph/m-p/3085#M3085</guid>
      <dc:creator>malurus</dc:creator>
      <dc:date>2011-03-17T00:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: two plots on one graph</title>
      <link>https://community.jmp.com/t5/Discussions/two-plots-on-one-graph/m-p/3086#M3086</link>
      <description>&lt;P&gt;I cannot find a way to do it mannually but it seems to be possible via script. Try this (change to your own column names):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Variables( X( :Month ), Y( :MeanRainfall ), Y( :Rainfall, Position( 1 ) ) ),
	Elements(
		Bar(
			X,
			Y( 1 ),
			Legend( 3 ),
			Row order( 0 ),
			Error Bars( "Standard Error" ),
			Summary Statistic( "Mean" )
		),
		Line(
			X,
			Y( 2 ),
			Legend( 3 ),
			Row order( 0 ),
			Error Bars( "Standard Error" ),
			Summary Statistic( "Mean" )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Aug 2018 17:39:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/two-plots-on-one-graph/m-p/3086#M3086</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2018-08-13T17:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: two plots on one graph</title>
      <link>https://community.jmp.com/t5/Discussions/two-plots-on-one-graph/m-p/3087#M3087</link>
      <description>Thanks MS - I appreciate your suggestion.&lt;BR /&gt;&lt;BR /&gt;I tried using your script after altering the column names and couldn't get it to work. But I'm not good with scripts, nor do I have the time to learn how to work with them - if I did I'd be using R!&lt;BR /&gt;&lt;BR /&gt;I'm surprised JMP can't do this - it's not a complicated request and it's fairly routine for programmes like Sigmaplot.&lt;BR /&gt;&lt;BR /&gt;C'mon JMP people! I've got 23 days left on my eval licence and things don't look good for you right now if I have to resort to learning how to use scripts.</description>
      <pubDate>Fri, 18 Mar 2011 00:01:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/two-plots-on-one-graph/m-p/3087#M3087</guid>
      <dc:creator>malurus</dc:creator>
      <dc:date>2011-03-18T00:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: two plots on one graph</title>
      <link>https://community.jmp.com/t5/Discussions/two-plots-on-one-graph/m-p/3088#M3088</link>
      <description>Graph builder is a "quick and dirty" way to rapidly explore data graphically. Use the "Chart" platform if you want to make this combined plot manually.&lt;BR /&gt;&lt;BR /&gt;Enter Month and your two Y variables, and make sure "Overlay" is checked and also check "Add error bars to mean". In the legend of the resulting graph, right-click  on one variable and change to "Line chart".&lt;BR /&gt;&lt;BR /&gt;And, btw, the scripting in JMP is what sets it apart. You don't have to learn much actual scripting (like in R). Most of the things you do manually can be saved as a script for repeated use. Yet, JMP scripting, can be very powerful.&lt;BR /&gt;&lt;BR /&gt;But if it's just neat graphs you are looking for, JMP may not be for you.</description>
      <pubDate>Fri, 18 Mar 2011 10:04:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/two-plots-on-one-graph/m-p/3088#M3088</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2011-03-18T10:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: two plots on one graph</title>
      <link>https://community.jmp.com/t5/Discussions/two-plots-on-one-graph/m-p/254680#M50004</link>
      <description>&lt;P&gt;Hi Malurus,&lt;/P&gt;
&lt;P&gt;You are on the right track here. Once you add the two variables to the y-axis, the trick is to use both the Bar and Line graphing elements. (drag and drop the 2nd element onto graph)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From there, modify which variable (current or historical rainfall) applies to which graphing element.&amp;nbsp;To do this:&lt;/P&gt;
&lt;P&gt;From lefthand panel, expand the Variables menu&lt;/P&gt;
&lt;P&gt;Select historical for the Line element&lt;/P&gt;
&lt;P&gt;Select current for the Bar element&lt;/P&gt;
&lt;P&gt;You can also add the SE bars for the Bar element via this panel&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should end up with something like the image below (lefthand panel items indicated in red):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-03-27 at 1.52.07 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22589i1A7441A2908AE975/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2020-03-27 at 1.52.07 PM.png" alt="Screen Shot 2020-03-27 at 1.52.07 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 20:59:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/two-plots-on-one-graph/m-p/254680#M50004</guid>
      <dc:creator>Jeff_Upton</dc:creator>
      <dc:date>2020-03-27T20:59:27Z</dc:date>
    </item>
  </channel>
</rss>

