<?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: change legend to existing biv plot in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/change-legend-to-existing-biv-plot/m-p/50299#M28612</link>
    <description>&lt;P&gt;When you add a 'by' to the bivariate analysis a list of objects is returned.&amp;nbsp; Thus you need&amp;nbsp;to operate on each item in the list.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here( 1);

dt = Open( "$Sample_data/big class.jmp" );

prof = Bivariate( 
	Y( :height ), 
	X( :weight ), 
	By( age ),
	SendToReport(
		Dispatch(
			{},
			"Bivar Plot",
			FrameBox,
			{Row Legend(
				name,
				Color( 1 ),
				Color Theme( "JMP Default" ),
				Marker( 0 ),
				Marker Theme( "" ),
				Continuous Scale( 0 ),
				Reverse Scale( 0 ),
				Excluded Rows( 0 )
			)}
		)
	)
);

//Note how prof is a list
Show( type( prof ) );
Show( N Items( prof ) );

//Delete the old row legend first
Try( Report( prof[1] )[BorderBox(2)] &amp;lt;&amp;lt; Delete );

//Add a new row legend
Report( prof[1] )[Frame Box(1)] &amp;lt;&amp;lt; Row Legend(
	sex,
	Color( 1 ),
	Color Theme( "JMP Default" ),
	Marker( 0 ),
	Marker Theme( "" ),
	Continuous Scale( 0 ),
	Reverse Scale( 0 ),
	Excluded Rows( 0 )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 26 Jan 2018 17:29:06 GMT</pubDate>
    <dc:creator>ih</dc:creator>
    <dc:date>2018-01-26T17:29:06Z</dc:date>
    <item>
      <title>change legend to existing biv plot</title>
      <link>https://community.jmp.com/t5/Discussions/change-legend-to-existing-biv-plot/m-p/50249#M28588</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i created a biv&amp;nbsp;chart with legend&amp;nbsp;"age", now i want to use the same graph&amp;nbsp;with a different legend.&lt;/P&gt;&lt;P&gt;how can i do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is what i try and the error i get.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;prof=Bivariate( 
	Y( :high),	
	X( :weight),
	by(:country),
	SendToReport(
		Dispatch( {}, "Bivar Plot", FrameBox, {Frame Size( 550, 450 ), 
					Row Legend(
					:age,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 1 ),
					Marker Theme( "Alphanumeric" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 ))
					} )
	)
);
Report( prof )[Frame Box(1)] &amp;lt;&amp;lt; Row Legend( “sex”, color(1), marker(1));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Send Expects Scriptable Object{731} in access or evaluation of 'Send' , Report( prof )[Frame Box( 1 )] &amp;lt;&amp;lt; /*###*/Row Legend(&lt;BR /&gt;"sex",&lt;BR /&gt;color( 1 ),&lt;BR /&gt;Marker( 1 )&lt;BR /&gt;) /*###*/&lt;/P&gt;&lt;P&gt;In the following script, error marked by /*###*/&lt;BR /&gt;Report( prof )[Frame Box( 1 )] &amp;lt;&amp;lt; /*###*/Row Legend(&lt;BR /&gt;"sex",&lt;BR /&gt;color( 1 ),&lt;BR /&gt;Marker( 1 )&lt;BR /&gt;) /*###*/&lt;BR /&gt;{}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 10:20:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/change-legend-to-existing-biv-plot/m-p/50249#M28588</guid>
      <dc:creator>AdamChoen</dc:creator>
      <dc:date>2018-01-26T10:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: change legend to existing biv plot</title>
      <link>https://community.jmp.com/t5/Discussions/change-legend-to-existing-biv-plot/m-p/50299#M28612</link>
      <description>&lt;P&gt;When you add a 'by' to the bivariate analysis a list of objects is returned.&amp;nbsp; Thus you need&amp;nbsp;to operate on each item in the list.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here( 1);

dt = Open( "$Sample_data/big class.jmp" );

prof = Bivariate( 
	Y( :height ), 
	X( :weight ), 
	By( age ),
	SendToReport(
		Dispatch(
			{},
			"Bivar Plot",
			FrameBox,
			{Row Legend(
				name,
				Color( 1 ),
				Color Theme( "JMP Default" ),
				Marker( 0 ),
				Marker Theme( "" ),
				Continuous Scale( 0 ),
				Reverse Scale( 0 ),
				Excluded Rows( 0 )
			)}
		)
	)
);

//Note how prof is a list
Show( type( prof ) );
Show( N Items( prof ) );

//Delete the old row legend first
Try( Report( prof[1] )[BorderBox(2)] &amp;lt;&amp;lt; Delete );

//Add a new row legend
Report( prof[1] )[Frame Box(1)] &amp;lt;&amp;lt; Row Legend(
	sex,
	Color( 1 ),
	Color Theme( "JMP Default" ),
	Marker( 0 ),
	Marker Theme( "" ),
	Continuous Scale( 0 ),
	Reverse Scale( 0 ),
	Excluded Rows( 0 )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jan 2018 17:29:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/change-legend-to-existing-biv-plot/m-p/50299#M28612</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2018-01-26T17:29:06Z</dc:date>
    </item>
  </channel>
</rss>

