<?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: assign marker style(line style) by &amp;quot;string&amp;quot; or specific &amp;quot;value&amp;quot; in column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/assign-marker-style-line-style-by-quot-string-quot-or-specific/m-p/48861#M27765</link>
    <description>&lt;P&gt;Here is a sample that I believe matches what you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );

// Set the X column to be continuous to match your sample
dt:age &amp;lt;&amp;lt; modeling type( continuous );

// Set the markers
dt &amp;lt;&amp;lt; color or mark by column( :sex, marker theme( solid ) );

// Create the chart
Graph Builder(
	Size( 534, 490 ),
	Show Control Panel( 0 ),
	Variables( X( :age ), Y( :height ), Y( :weight, Position( 1 ) ), Group X( :sex ) ),
	Elements(
		Points( X, Y( 1 ), Y( 2 ), Legend( 8 ) ),
		Line( X, Y( 1 ), Y( 2 ), Legend( 10 ) )
	),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model( 10, Properties( 0, {Line Style( "Dotted" )} ) )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The best way to generate the script for things like this is to run the sample interactively, getting it the way you want it, and then to simply Save the Script from under the red triangle.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Dec 2017 16:15:28 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2017-12-19T16:15:28Z</dc:date>
    <item>
      <title>assign marker style(line style) by "string" or specific "value" in column</title>
      <link>https://community.jmp.com/t5/Discussions/assign-marker-style-line-style-by-quot-string-quot-or-specific/m-p/48860#M27764</link>
      <description>&lt;P&gt;Is it possible to assign the marker style by group name??Taking this script for example,I want to&amp;nbsp; let column "mean" line-style always be&amp;nbsp; dashed and column "Range" line-style be solid in the all page(page by process step) of graph.Some of my page(process step) don't have the "Mean"data.If I script like this,the line style will not fixed at all my plot.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 562, 477 ),
	Variables( X( :date ), Y( :Mean ), Y( :Range, Position( 1 ) ) ),
	Elements(
		Line( X, Y( 1 ), Y( 2 ), Legend( 9 ) ),
		Points( X, Y( 1 ), Y( 2 ), Legend( 10 ) )
	),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				9,
				Properties( 0, {Line Style( "Dashed" )} ),
				Properties( 1, {Line Style( "Solid" )} )
			)}
		),
		Dispatch( {}, "Graph Builder", FrameBox, {Marker Size( 3 )} )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am trying to did like the following script. I assign the properties to a "string"(or a sepecific value in a column).But it doesn't works. Could anyone help?? Thanks!&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Properties( "Mean", {Line Style( "Dashed" )} ),&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Properties( "Range", {Line Style( "Dashed" )} ),&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 15:55:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/assign-marker-style-line-style-by-quot-string-quot-or-specific/m-p/48860#M27764</guid>
      <dc:creator>Leo_Huang</dc:creator>
      <dc:date>2017-12-19T15:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: assign marker style(line style) by "string" or specific "value" in column</title>
      <link>https://community.jmp.com/t5/Discussions/assign-marker-style-line-style-by-quot-string-quot-or-specific/m-p/48861#M27765</link>
      <description>&lt;P&gt;Here is a sample that I believe matches what you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );

// Set the X column to be continuous to match your sample
dt:age &amp;lt;&amp;lt; modeling type( continuous );

// Set the markers
dt &amp;lt;&amp;lt; color or mark by column( :sex, marker theme( solid ) );

// Create the chart
Graph Builder(
	Size( 534, 490 ),
	Show Control Panel( 0 ),
	Variables( X( :age ), Y( :height ), Y( :weight, Position( 1 ) ), Group X( :sex ) ),
	Elements(
		Points( X, Y( 1 ), Y( 2 ), Legend( 8 ) ),
		Line( X, Y( 1 ), Y( 2 ), Legend( 10 ) )
	),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model( 10, Properties( 0, {Line Style( "Dotted" )} ) )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The best way to generate the script for things like this is to run the sample interactively, getting it the way you want it, and then to simply Save the Script from under the red triangle.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 16:15:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/assign-marker-style-line-style-by-quot-string-quot-or-specific/m-p/48861#M27765</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-12-19T16:15:28Z</dc:date>
    </item>
  </channel>
</rss>

