<?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: Graph builder with separate overlay, color and marker in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graph-builder-with-separate-overlay-color-and-marker/m-p/374536#M62432</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just a quick note that may (perhaps) meet your requirements if you do not mind a bit of manual preparation:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create 2 new columns by splitting Group column (Column &amp;gt; Text to Column&amp;nbsp; &amp;gt; Separator = "-".&lt;/LI&gt;
&lt;LI&gt;If you want, rename the column as CLASS and SUBCLASS, respectively&lt;/LI&gt;
&lt;LI&gt;Assign Symbols to each row based on the SUBCLASS column (No Color, Symbols = Standard)&lt;/LI&gt;
&lt;LI&gt;Build your plot with Overlay = Group, and Color as CLASS&lt;/LI&gt;
&lt;LI&gt;Under the Points menu, deactivate the Overlay option (as shown below)&lt;/LI&gt;
&lt;/OL&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="Thierry_S_2-1617688320591.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31896i182D82A6FBABD097/image-size/large?v=v2&amp;amp;px=999" role="button" title="Thierry_S_2-1617688320591.png" alt="Thierry_S_2-1617688320591.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;There is another manual option where you will not need to assign the Markers and switch-off the Overlay under Points: in the Preferences &amp;gt; Graphs &amp;gt; Graph Marker Theme &amp;gt; Paired will yield something similar to what you may need.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Apr 2021 06:02:14 GMT</pubDate>
    <dc:creator>Thierry_S</dc:creator>
    <dc:date>2021-04-06T06:02:14Z</dc:date>
    <item>
      <title>Graph builder with separate overlay, color and marker</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-builder-with-separate-overlay-color-and-marker/m-p/374511#M62430</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="legend-requirement.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31907i2358D9CF1D61983F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="legend-requirement.png" alt="legend-requirement.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am trying to use JSL to construct a plot similar to the one shown above. My attempt is below. Where I am stuck is that I don't want the marker legend to use the overlay variable, but to use lgd2. The solution needs to work for various number of categories for "lgd1" and "lgd2".&lt;/P&gt;&lt;P&gt;:)&lt;/img&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = New Table( "example",
	Add Rows( 18 ),
	Set Header Height( 60 ),
	New Column( "lgd1",
		Character,
		"Nominal",
		Set Values(
			{"A", "A", "A", "A", "A", "A", "B", "B", "B", "B", "B", "B", "C", "C",
			"C", "C", "C", "C"}
		),
		Set Display Width( 63 )
	),
	New Column( "lgd2",
		Numeric,
		"Nominal",
		Format( "Best", 12 ),
		Set Values( [1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2] )
	),
	New Column( "value",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [1, 1, 2, 1.5, 1.5, 2, 2, 2, 3, 2, 4, 3, 4, 4.5, 5, 4, 6, 5.5] )
	),
	New Column( "X",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3] )
	),
	New Column( "Group",
		Character,
		"Nominal",
		Set Values(
			{"A-1", "A-1", "A-1", "A-2", "A-2", "A-2", "B-1", "B-1", "B-1", "B-2",
			"B-2", "B-2", "C-1", "C-1", "C-1", "C-2", "C-2", "C-2"}
		)
	)
);


DT &amp;lt;&amp;lt; Graph Builder(
	Size( 500, 500 ),
	Show Control Panel( 0 ),
	Fit to Window( "Off" ),
	Variables( X( :X ), Y( :value ), Overlay( :Group ), Color( :lgd1 ) ),
	Elements( Line( X, Y, Legend( 1 ) ), Points( X, Y, Legend( 2 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				1,
				Properties( 0, {Marker Size( 5 )}, Item ID( "A", 1 ) ),
				Properties( 1, {Marker Size( 5 )}, Item ID( "B", 1 ) )
			), Legend Model(
				2,
				Properties( 3, {Marker Size( 5 )}, Item ID( "A-1", 1 ) ),
				Properties( 4, {Marker Size( 5 )}, Item ID( "A-2", 1 ) ),
				Properties(
					5,
					{Marker( "Circle" ), Marker Size( 5 )},
					Item ID( "B-1", 1 )
				),
				Properties(
					6,
					{Marker( "Plus" ), Marker Size( 5 )},
					Item ID( "B-2", 1 )
				),
				Properties(
					7,
					{Marker( "Circle" ), Marker Size( 5 )},
					Item ID( "C-1", 1 )
				),
				Properties(
					8,
					{Marker( "Plus" ), Marker Size( 5 )},
					Item ID( "C-2", 1 )
				)
			)}
		),
		Dispatch(
			{},
			"400",
			LegendBox,
			{Legend Position( {1, [0, 1, 2], 2, [-1, -1, -1, 3, 4, 5, 6, 7, 8]} ),
			Position( {0, 1, 2, -1, -1, -1, 3, 4, 5, 6, 7, 8} )}
		)
	)
);

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:12:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-builder-with-separate-overlay-color-and-marker/m-p/374511#M62430</guid>
      <dc:creator>Mittman</dc:creator>
      <dc:date>2023-06-11T11:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Graph builder with separate overlay, color and marker</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-builder-with-separate-overlay-color-and-marker/m-p/374536#M62432</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just a quick note that may (perhaps) meet your requirements if you do not mind a bit of manual preparation:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create 2 new columns by splitting Group column (Column &amp;gt; Text to Column&amp;nbsp; &amp;gt; Separator = "-".&lt;/LI&gt;
&lt;LI&gt;If you want, rename the column as CLASS and SUBCLASS, respectively&lt;/LI&gt;
&lt;LI&gt;Assign Symbols to each row based on the SUBCLASS column (No Color, Symbols = Standard)&lt;/LI&gt;
&lt;LI&gt;Build your plot with Overlay = Group, and Color as CLASS&lt;/LI&gt;
&lt;LI&gt;Under the Points menu, deactivate the Overlay option (as shown below)&lt;/LI&gt;
&lt;/OL&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="Thierry_S_2-1617688320591.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31896i182D82A6FBABD097/image-size/large?v=v2&amp;amp;px=999" role="button" title="Thierry_S_2-1617688320591.png" alt="Thierry_S_2-1617688320591.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;There is another manual option where you will not need to assign the Markers and switch-off the Overlay under Points: in the Preferences &amp;gt; Graphs &amp;gt; Graph Marker Theme &amp;gt; Paired will yield something similar to what you may need.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 06:02:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-builder-with-separate-overlay-color-and-marker/m-p/374536#M62432</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2021-04-06T06:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Graph builder with separate overlay, color and marker</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-builder-with-separate-overlay-color-and-marker/m-p/374748#M62450</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11634"&gt;@Thierry_S&lt;/a&gt;&amp;nbsp;. I've edited my original post to include more details on the required solution.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 19:42:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-builder-with-separate-overlay-color-and-marker/m-p/374748#M62450</guid>
      <dc:creator>Mittman</dc:creator>
      <dc:date>2021-04-06T19:42:34Z</dc:date>
    </item>
  </channel>
</rss>

