<?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: For Smoother lines, can the volume/density of data be used to adjust the thickness of the Smoother line? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/For-Smoother-lines-can-the-volume-density-of-data-be-used-to/m-p/265055#M51641</link>
    <description>&lt;P&gt;Other than manually changing the line thickness, once the graph is displayed, one would have to write a script to do this.&amp;nbsp; If you are a script writer, it should not be a major task to do this.&amp;nbsp; Below is an example hardwired script that will give you an idea of how to approach the task.&amp;nbsp; It uses the Big Class sample data table as it's data source&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thickline.PNG" style="width: 611px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23803iB92153974FD71AE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="thickline.PNG" alt="thickline.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
Graph Builder(
	Variables( X( :weight ), Y( :height ), Overlay( :age ) ),
	Elements( Points( X, Y, Legend( 9 ) ), Smoother( X, Y, Legend( 10 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				10,
				Properties( 0, {Line Width( 4 )}, Item ID( "12", 1 ) ),
				Properties( 1, {Line Width( 12 )}, Item ID( "13", 1 ) )
			)}
		)
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 May 2020 15:25:09 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-05-07T15:25:09Z</dc:date>
    <item>
      <title>For Smoother lines, can the volume/density of data be used to adjust the thickness of the Smoother line?</title>
      <link>https://community.jmp.com/t5/Discussions/For-Smoother-lines-can-the-volume-density-of-data-be-used-to/m-p/265043#M51638</link>
      <description>&lt;P&gt;I often use Smoother+Overlay to check how independent categorical variables affect dependent continuous variables in a time trend plot. But one issue I often encounter is when different categories have different volumes of data, the smoother lines are equally as big even if one category has 200 data points and another category has 4 data points. This can create busy plots where it's hard to distinguish the important signals. (And if I'm checking a large number of different independent variables in the Overlay role, it is tedious to exclude small-data-volume groups for each variable.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to do something similar to: make the Smoother line thicker if there's a high data volume, and thinner if there's less data? (Even BETTER would be if the line dynamically changed thickness depending on the deltaX between two points: e.g., if one category has two points 1 day apart and another category has two point 2 days apart, the smoother line for the first category would be ~twice as thick.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the type of "busy graph" I'm dealing with: variable thickness lines would help me determine at a glance which signals are important and which ones aren't.&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="markschwab_0-1588861134690.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23801iF0AC9C86B2F69FC6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="markschwab_0-1588861134690.png" alt="markschwab_0-1588861134690.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 14:21:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-Smoother-lines-can-the-volume-density-of-data-be-used-to/m-p/265043#M51638</guid>
      <dc:creator>markschwab</dc:creator>
      <dc:date>2020-05-07T14:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: For Smoother lines, can the volume/density of data be used to adjust the thickness of the Smoother line?</title>
      <link>https://community.jmp.com/t5/Discussions/For-Smoother-lines-can-the-volume-density-of-data-be-used-to/m-p/265055#M51641</link>
      <description>&lt;P&gt;Other than manually changing the line thickness, once the graph is displayed, one would have to write a script to do this.&amp;nbsp; If you are a script writer, it should not be a major task to do this.&amp;nbsp; Below is an example hardwired script that will give you an idea of how to approach the task.&amp;nbsp; It uses the Big Class sample data table as it's data source&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thickline.PNG" style="width: 611px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23803iB92153974FD71AE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="thickline.PNG" alt="thickline.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
Graph Builder(
	Variables( X( :weight ), Y( :height ), Overlay( :age ) ),
	Elements( Points( X, Y, Legend( 9 ) ), Smoother( X, Y, Legend( 10 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				10,
				Properties( 0, {Line Width( 4 )}, Item ID( "12", 1 ) ),
				Properties( 1, {Line Width( 12 )}, Item ID( "13", 1 ) )
			)}
		)
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 15:25:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-Smoother-lines-can-the-volume-density-of-data-be-used-to/m-p/265055#M51641</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-05-07T15:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: For Smoother lines, can the volume/density of data be used to adjust the thickness of the Smoother line?</title>
      <link>https://community.jmp.com/t5/Discussions/For-Smoother-lines-can-the-volume-density-of-data-be-used-to/m-p/265139#M51656</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2094"&gt;@markschwab&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Local Data Filters, especially with Column transforms are quite useful for your task. Look at the screenshot below. You can do this by hand&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create your GraphBuilder plot&lt;/LI&gt;
&lt;LI&gt;Add a Local Data Filter&lt;/LI&gt;
&lt;LI&gt;Select your category/Overlay/GroupBy column, in this example &lt;STRONG&gt;age&lt;/STRONG&gt;. Right click and select &lt;STRONG&gt;Group By&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Right click again and select &lt;STRONG&gt;Aggregate &amp;gt; Count&lt;/STRONG&gt;. If you have missing data, select your &lt;STRONG&gt;Y&lt;/STRONG&gt; variable and select &lt;STRONG&gt;Aggregate&amp;gt;Count&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Hit the plus sign, to add this filter.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;See the second screenshot picture. You can slide the bars for the relative size you want. Or even look at the low density data alone.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 983px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23813iE4ACD3B10419ABDC/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&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="image.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23815iC48D52820F25B313/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;, Jim, mentioned this is fairly easy to script. See below.&amp;nbsp; That said, "N", or count is not the best filter.&amp;nbsp; Your data could have 200 values of weight vs. height&amp;nbsp; for 12 year olds, and 180 value are all for&amp;nbsp; 50&amp;lt; height &amp;lt; 53. In other words, no representation for tall kids.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is not exactly what you want, but a data filter such as this can be quite useful when looking for nuggets of information on "messy" graphs. Note you can also make a context filter, where the filter applies to multiple graphs.&amp;nbsp; Good luck with your search for something you can use now.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 615, 481 ),
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Overlay( :age ) ),
	Elements( Points( X, Y, Legend( 50 ) ), Smoother( X, Y, Legend( 51 ) ) ),
	Local Data Filter(
		Add Filter(
			columns(
				Transform Column(
					"Count[weight][age]",
					Formula( Col Number( :weight, :age ) )
				)
			),
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 09:12:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-Smoother-lines-can-the-volume-density-of-data-be-used-to/m-p/265139#M51656</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2020-05-08T09:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: For Smoother lines, can the volume/density of data be used to adjust the thickness of the Smoother line?</title>
      <link>https://community.jmp.com/t5/Discussions/For-Smoother-lines-can-the-volume-density-of-data-be-used-to/m-p/265237#M51672</link>
      <description>&lt;P&gt;Thanks for the method, that's very cool! Is there any way to get it to work when the column is of Data Type = Character? I've gotten your method to work when the data type is numeric, but when I right click on a column whose data type is Character I don't see an option for Aggregate.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 14:58:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-Smoother-lines-can-the-volume-density-of-data-be-used-to/m-p/265237#M51672</guid>
      <dc:creator>markschwab</dc:creator>
      <dc:date>2020-05-08T14:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: For Smoother lines, can the volume/density of data be used to adjust the thickness of the Smoother line?</title>
      <link>https://community.jmp.com/t5/Discussions/For-Smoother-lines-can-the-volume-density-of-data-be-used-to/m-p/265244#M51675</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2094"&gt;@markschwab&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I suggest you just use, the categorical variable and select the Display Options: &lt;STRONG&gt;Check Box&lt;/STRONG&gt; and &lt;STRONG&gt;Order by Count&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note you will get N and you can easily select multiple groups. The&amp;nbsp;&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="image.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23829iCEC34F99A2EB1DBD/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 526, 474 ),
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 22 ) ), Smoother( X, Y, Legend( 23 ) ) ),
	Local Data Filter(
		Add Filter(
			columns( :sex ),
			Display( :sex, "Check Box Display" ),
			Order By Count( :sex )
		)
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope that helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 15:27:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-Smoother-lines-can-the-volume-density-of-data-be-used-to/m-p/265244#M51675</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2020-05-08T15:27:00Z</dc:date>
    </item>
  </channel>
</rss>

