<?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: Create this type of graph in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Create-this-type-of-graph/m-p/720169#M90236</link>
    <description>&lt;P&gt;Here is the data file I am using. I really want to compare it month by (one for each virus) for 2022 and 2023.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2024 16:24:24 GMT</pubDate>
    <dc:creator>patriciafm811</dc:creator>
    <dc:date>2024-01-30T16:24:24Z</dc:date>
    <item>
      <title>Create this type of graph</title>
      <link>https://community.jmp.com/t5/Discussions/Create-this-type-of-graph/m-p/719956#M90221</link>
      <description>&lt;P&gt;I have been asked to make a graph like the one below, comparing one year to another. But I have no idea how to do this in JMP (or anything else honestly). Can anyone help point me in the right direction?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="patriciafm811_0-1706618953806.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60709i2FC640FF58356284/image-size/medium?v=v2&amp;amp;px=400" role="button" title="patriciafm811_0-1706618953806.png" alt="patriciafm811_0-1706618953806.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 12:50:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-this-type-of-graph/m-p/719956#M90221</guid>
      <dc:creator>patriciafm811</dc:creator>
      <dc:date>2024-01-30T12:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create this type of graph</title>
      <link>https://community.jmp.com/t5/Discussions/Create-this-type-of-graph/m-p/720053#M90227</link>
      <description>&lt;P&gt;Here is one way to accomplish this.&amp;nbsp; Given a data table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1706626306211.png" style="width: 424px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60711iC24898271B565D8F/image-dimensions/424x483?v=v2" width="424" height="483" role="button" title="txnelson_0-1706626306211.png" alt="txnelson_0-1706626306211.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I produced the below chart, using Graph Builder, with Added graphics&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1706626388765.png" style="width: 563px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60712iD52CD42657169B58/image-dimensions/563x486?v=v2" width="563" height="486" role="button" title="txnelson_1-1706626388765.png" alt="txnelson_1-1706626388765.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Below is the JSL that produced the above graph&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Data Table( "Example" );

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 648, 450 ),
	Show Control Panel( 0 ),
	Variables( X( :Month ), Y( :Value ) ),
	Elements( Points( X, Y, Legend( 3 ), Error Interval( "Range" ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Value",
			ScaleBox,
			{Min( -8.0923781757601 ), Max( 122.008163265306 ), Inc( 20 ),
			Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				3,
				Properties( 0, {Line Color( 16 )}, Item ID( "Value", 1 ) ),
				Properties( -1, {Line Color( 16 )}, Item ID( "Jan", 1 ) ),
				Properties( -1, {Line Color( 16 )}, Item ID( "Mean", 1 ) )
			)}
		),
		Dispatch(
			{},
			"graph title",
			TextEditBox,
			{Set Text( "Previous 5-year average  2023" )}
		),
		Dispatch( {}, "X title", TextEditBox, {Set Text( "" )} ),
		Dispatch( {}, "Y title", TextEditBox, {Set Text( "" )} ),
		Dispatch( {}, "400", LegendBox, {Legend Position( {3, [-1, -3]} )} )
	)
);

// Add the Circles and Lines
Report( gb )[FrameBox( 1 )] &amp;lt;&amp;lt;
Add Graphics Script(
	For Each Row(
		If( :Type == "High",
			Fill Color( "Gray" );
			theHigh = :Value;
			theLow = :Value[Row() + 1];
			Pen Color( "Gray" );
			Pen Size( 4 );
			X = Matrix( Floor( Row() / 2 ) ) || Matrix( Floor( Row() / 2 ) );
			y = Matrix( theHigh ) || Matrix( theLow );
			Line( X, Y );
			theList = {};
			Insert Into( theList, X[1] );
			Insert Into( theList, Y[1] );
			Circle( theList, 7, "Fill" );
		,
			Fill Color( "Red" );
			theList = {};
			Show( Floor( Row() - 1 ) );
			Insert Into( theList, Floor( (Row() - 1) / 2 ) );
			Insert Into( theList, :value );
			Circle( theList, 7, "Fill" );
			// Add the numerical value in the circle
			Text Color( "White" );
			// Subtract a fudge factor to better center the text
			theList[2] = :Value - 3;
			Text Font( "Segoe UI", 14, "Bold" );
			Text( Center Justified, theList, Char( :Value ) );
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Jan 2024 14:58:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-this-type-of-graph/m-p/720053#M90227</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-01-30T14:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create this type of graph</title>
      <link>https://community.jmp.com/t5/Discussions/Create-this-type-of-graph/m-p/720165#M90234</link>
      <description>&lt;P&gt;This is helping a LOT. What if (instead of high and low) I wanted to do the year?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 16:20:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-this-type-of-graph/m-p/720165#M90234</guid>
      <dc:creator>patriciafm811</dc:creator>
      <dc:date>2024-01-30T16:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create this type of graph</title>
      <link>https://community.jmp.com/t5/Discussions/Create-this-type-of-graph/m-p/720168#M90235</link>
      <description>&lt;P&gt;Here is another way that gets you pretty close and does not require any scripting.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scott_allen_2-1706631657112.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60741i522130AED7FF958A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="scott_allen_2-1706631657112.png" alt="scott_allen_2-1706631657112.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One way to get this style of graph is to re-shape your data table by splitting the data into two columns, then use those columns in the Interval Dropzone.&amp;nbsp;I learned this trick from&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6543"&gt;@scwise&lt;/a&gt;&amp;nbsp;from one of his Pictures from the Gallery series. Everything else is changing colors, adding annotation boxes, and hiding various chart elements.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discovery-Summit-Europe-2022/Pictures-from-the-Gallery-7-Select-Advanced-Graph-Builder-Views/ta-p/446126" target="_blank"&gt;https://community.jmp.com/t5/Discovery-Summit-Europe-2022/Pictures-from-the-Gallery-7-Select-Advanced-Graph-Builder-Views/ta-p/446126&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 16:22:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-this-type-of-graph/m-p/720168#M90235</guid>
      <dc:creator>scott_allen</dc:creator>
      <dc:date>2024-01-30T16:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create this type of graph</title>
      <link>https://community.jmp.com/t5/Discussions/Create-this-type-of-graph/m-p/720169#M90236</link>
      <description>&lt;P&gt;Here is the data file I am using. I really want to compare it month by (one for each virus) for 2022 and 2023.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 16:24:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-this-type-of-graph/m-p/720169#M90236</guid>
      <dc:creator>patriciafm811</dc:creator>
      <dc:date>2024-01-30T16:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create this type of graph</title>
      <link>https://community.jmp.com/t5/Discussions/Create-this-type-of-graph/m-p/720319#M90259</link>
      <description>&lt;P&gt;Using&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/24971"&gt;@scott_allen&lt;/a&gt;&amp;nbsp;method(much better than mine), and your data I created these graphs interactively using Graph Builder.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1706643787269.png" style="width: 813px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60762i6D2AD60C1DEC8E69/image-dimensions/813x604?v=v2" width="813" height="604" role="button" title="txnelson_0-1706643787269.png" alt="txnelson_0-1706643787269.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The only things I had to do to your data was to&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;subset the data keeping only the data for years 2022 and 2023.&lt;/LI&gt;
&lt;LI&gt;Split the subsetted data table using&amp;nbsp; Tables=&amp;gt;Split,&amp;nbsp;
&lt;OL&gt;
&lt;LI&gt;Split By: Year&lt;/LI&gt;
&lt;LI&gt;Split Columns: Rate&lt;/LI&gt;
&lt;LI&gt;Select "Keep All"&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Using the new split data table&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1706644193525.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60763i44E4499B613152A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_1-1706644193525.png" alt="txnelson_1-1706644193525.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Opened Graph Builder&lt;/LI&gt;
&lt;LI&gt;To make separate graphs for each virus, I selected Virus and dragged it to the Page drop sone.&lt;/LI&gt;
&lt;LI&gt;Selected the Month column and dragged it to the X axis drop zone&lt;/LI&gt;
&lt;LI&gt;Select both columns&amp;nbsp;2022 and 2023&amp;nbsp; and dragged them to the Y axis drop zone&lt;/LI&gt;
&lt;LI&gt;To relate the 2 year columns, select 2022 and 2023 and drag them to the Interval drop zone&lt;/LI&gt;
&lt;LI&gt;In the legend, right click on the blue dot and select Marker Size
&lt;OL&gt;
&lt;LI&gt;Select "Other"&lt;/LI&gt;
&lt;LI&gt;The type in 40&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Repeat step 6 for the red dot&lt;/LI&gt;
&lt;LI&gt;You can right click on the dots and change the colors to your liking&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;The most important thing to do is to read the documentation available under the Help Pull Down menu.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Discovering JMP&lt;/LI&gt;
&lt;LI&gt;Using JMP&lt;/LI&gt;
&lt;LI&gt;Essential Graphing (in particular the section on Graph Builder)&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 30 Jan 2024 20:07:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-this-type-of-graph/m-p/720319#M90259</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-01-30T20:07:08Z</dc:date>
    </item>
  </channel>
</rss>

