cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
%3CLINGO-SUB%20id%3D%22lingo-sub-417822%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E4%BD%BF%20Graph%20Builder%20%E4%B8%AD%E7%9A%84%20Smoother%20%E6%88%90%E7%82%BA%E5%8F%AF%E7%B7%A8%E5%AF%AB%E8%85%B3%E6%9C%AC%E7%9A%84%E5%B0%8D%E8%B1%A1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-417822%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E7%94%B1%E6%96%BC%E6%95%B8%E6%93%9A%E4%B8%AD%E5%AD%98%E5%9C%A8%E5%99%AA%E8%81%B2%EF%BC%8C%E6%88%91%E7%B6%93%E5%B8%B8%E5%BE%9E%E5%9C%96%E5%BD%A2%E7%94%9F%E6%88%90%E5%99%A8%E4%B8%AD%E4%BF%9D%E5%AD%98%E6%A8%A3%E6%A2%9D%E5%B9%B3%E6%BB%91%E5%85%AC%E5%BC%8F%E4%B8%A6%E8%A6%86%E8%93%8B%E5%88%86%E9%A1%9E%E8%AE%8A%E9%87%8F%EF%BC%8C%E7%84%B6%E5%BE%8C%E5%B0%87%E5%85%AC%E5%BC%8F%E4%BF%9D%E5%AD%98%E5%88%B0%E6%95%B8%E6%93%9A%E8%A1%A8%E4%B8%AD%E3%80%82%20%E6%88%91%E7%B6%93%E5%B8%B8%E4%BD%BF%E7%94%A8%E5%AE%83%EF%BC%8C%E6%89%80%E4%BB%A5%E6%88%91%E5%B8%8C%E6%9C%9B%E8%83%BD%E5%A4%A0%E7%B7%A8%E5%AF%AB%E5%AE%83%E7%9A%84%E8%85%B3%E6%9C%AC%E3%80%82%E5%9C%A8%E6%AA%A2%E6%9F%A5%E4%BA%86%E8%85%B3%E6%9C%AC%E6%8C%87%E5%8D%97%E4%B8%AD%E6%9C%89%E9%97%9C%E5%9F%B7%E8%A1%8C%E5%B5%8C%E5%85%A5%E5%BC%8F%E7%B4%85%E8%89%B2%E4%B8%89%E8%A7%92%E5%BD%A2%E9%81%B8%E9%A0%85%E7%9A%84%E9%83%A8%E5%88%86%E5%BE%8C%EF%BC%8C%E6%88%91%E7%84%A1%E6%B3%95%E5%B0%87%E5%B9%B3%E6%BB%91%E5%99%A8%E8%A6%96%E7%82%BA%E5%8F%AF%E7%B7%A8%E5%AF%AB%E8%85%B3%E6%9C%AC%E7%9A%84%E7%89%A9%E4%BB%B6%E3%80%82%20%E8%AB%8B%E4%BD%BF%E4%BF%9D%E5%AD%98%E6%A8%A3%E6%A2%9D%E7%B7%9A%E5%85%AC%E5%BC%8F%E8%AE%8A%E5%BE%97%E6%9B%B4%E5%B9%B3%E6%BB%91%EF%BC%8C%E6%88%91%E5%8F%AF%E4%BB%A5%E9%80%8F%E9%81%8E%20JSL%20%E5%AE%8C%E6%88%90%E6%AD%A4%E6%93%8D%E4%BD%9C%E3%80%82%20%E6%88%91%E7%A2%BA%E5%AF%A6%E6%84%8F%E8%AD%98%E5%88%B0%E5%8F%AF%E4%BB%A5%E5%B0%87%20Bivariate%20%E5%B9%B3%E5%8F%B0%E7%9A%84%E6%A8%A3%E6%A2%9D%E5%87%BD%E6%95%B8%E8%88%87%20By%20%E8%AE%8A%E6%95%B8%E4%B8%80%E8%B5%B7%E4%BD%BF%E7%94%A8%E3%80%82%20%E6%88%91%E7%A2%BA%E5%AF%A6%E6%9B%B4%E5%96%9C%E6%AD%A1%E5%9C%96%E5%BD%A2%E7%94%9F%E6%88%90%E5%99%A8%E4%B8%AD%E7%9A%84%E9%A0%90%E8%A8%AD%E6%A8%A3%E6%A2%9D%E6%9B%B2%E7%B7%9A%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-417822%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3E%E8%87%AA%E5%8B%95%E5%8C%96%E5%92%8C%E8%85%B3%E6%9C%AC%E7%B7%A8%E5%AF%AB%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-421758%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E4%BD%BF%E5%9C%96%E5%BD%A2%E7%94%A2%E7%94%9F%E5%99%A8%E4%B8%AD%E7%9A%84%20Smoother%20%E6%88%90%E7%82%BA%E5%8F%AF%E7%B7%A8%E5%AF%AB%E8%85%B3%E6%9C%AC%E7%9A%84%E5%B0%8D%E8%B1%A1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-421758%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%88%91%E8%AA%8D%E7%82%BA%E9%80%99%E5%80%8B%E5%95%8F%E9%A1%8C%E5%B7%B2%E8%A2%AB%E6%88%91%E5%9B%9E%E7%AD%94%E7%9A%84%E7%9B%B8%E9%97%9C%E5%95%8F%E9%A1%8C%E6%89%80%E5%8F%96%E4%BB%A3%EF%BC%8C%E5%9B%A0%E6%AD%A4%E6%88%91%E5%B0%87%E7%82%BA%E9%81%87%E5%88%B0%E6%AD%A4%E5%95%8F%E9%A1%8C%E7%9A%84%E4%BB%BB%E4%BD%95%E4%BA%BA%E7%99%BC%E5%B8%83%E7%9B%B8%E5%90%8C%E7%9A%84%20JSL%E3%80%82%20%E5%84%98%E7%AE%A1%E6%88%91%E5%B8%8C%E6%9C%9B%E9%80%99%E5%80%8B%E8%85%B3%E6%9C%AC%E8%83%BD%E5%A4%A0%E5%AF%A6%E7%8F%BE%E6%82%A8%E6%83%B3%E8%A6%81%E7%9A%84%E6%95%88%E6%9E%9C%EF%BC%8C%E4%BD%86%E7%A2%BA%E5%AF%A6%E6%B2%92%E6%9C%89%20Smoother%20%E7%89%A9%E4%BB%B6%E6%9C%AC%E8%BA%AB%E3%80%82%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Egb%20%3D%20Graph%20Builder(%0A%20Variables(%20X(%20%3Aheight%20)%2C%20Y(%20%3Aweight%20)%20)%2C%0A%20Elements(%20Points(%20X%2C%20Y%2C%20Legend(%202%20)%20)%2C%20Smoother(%20X%2C%20Y%2C%20Legend(%203%20))%20)%0A)%3B%0Agbb%20%3D%20Report(%20gb%20)%5BGraph%20Builder%20Box(%201%20)%5D%3B%0Agbb%20%26lt%3B%26lt%3B%20Update%20Element(%201%2C%201%2C%202%2C%20%7BSave%20Formula%7D%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-421143%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E4%BD%BF%E5%9C%96%E5%BD%A2%E7%94%A2%E7%94%9F%E5%99%A8%E4%B8%AD%E7%9A%84%20Smoother%20%E6%88%90%E7%82%BA%E5%8F%AF%E7%B7%A8%E5%AF%AB%E8%85%B3%E6%9C%AC%E7%9A%84%E5%B0%8D%E8%B1%A1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-421143%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E4%BD%9C%E7%82%BA%E8%A8%8A%E6%81%AF%EF%BC%8C%E8%A6%81%E5%BE%9E%E9%9B%99%E8%AE%8A%E9%87%8F%E4%B8%AD%E7%9A%84%E5%9C%96%E5%BD%A2%E7%94%9F%E6%88%90%E5%99%A8%E7%8D%B2%E5%BE%97%E7%9B%B8%E5%90%8C%E7%9A%84%E7%B7%9A%EF%BC%8C%E8%AB%8B%E5%9C%A8%E7%B4%85%E8%89%B2%E4%B8%89%E8%A7%92%E5%BD%A2%26gt%3B%20%E9%9D%88%E6%B4%BB%26gt%3B%20%E6%93%AC%E5%90%88%E6%A8%A3%E6%A2%9D%E7%B7%9A%E4%B8%8B%E9%81%B8%E6%93%87%E2%80%9C%E5%85%B6%E4%BB%96...%E2%80%9D%EF%BC%8C%E4%BD%BF%E7%94%A8lamda%200.05%EF%BC%88%E5%9C%96%E5%BD%A2%E7%94%9F%E6%88%90%E5%99%A8%E4%B8%AD%E7%9A%84%E9%A0%90%E8%A8%AD%E5%80%BC%EF%BC%89%E4%B8%A6%E9%81%B8%E5%8F%96%E2%80%9C%E6%A8%99%E6%BA%96%E5%8C%96X%E2%80%9D%E3%80%82%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ih_0-1632684190309.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ih_0-1632684190309.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ih_0-1632684190309.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F36074iC8A507636510DC29%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ih_0-1632684190309.png%22%20alt%3D%22ih_0-1632684190309.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar

make Smoother in Graph Builder a scriptable object

I frequently save the spline smoother formula from Graph Builder with overlay of a categorical variable and then save the formula to the data table because of the noise in my data. I use it so often that I would like to be able to script it.  After having checked the section of the Scripting Guide about  Executing Embedded Red Triangle options, I cannot see the Smoother as a scriptable object. Please make saving the spline smoother formula something that I can do from JSL. I do realize that it is possible to use a spline function from the Bivariate platform with a By variable. I do like the default spline fit in Graph Builder better.

2 Comments
ih
Super User (Alumni)
Super User (Alumni)

As information, to get the same line from graph builder in Bivariate, choose 'Other...' under the Red Triangle > Flexible > Fit Spline, use a lamda of 0.05 (default in graph builder) and check 'Standardize X'.

 

ih_0-1632684190309.png

 

 

XanGregg
Staff

I think this question was superseded by your related question that I answered, so I'll post the same JSL for anyone coming across just this one. Though I hope this script does what you want, it's still true that there's no Smoother object per se.

gb = Graph Builder(
	Variables( X( :height ), Y( :weight ) ),
	Elements( Points( X, Y, Legend( 2 ) ), Smoother( X, Y, Legend( 3 )) )
);
gbb = Report( gb )[Graph Builder Box( 1 )];
gbb << Update Element( 1, 1, 2, {Save Formula} );