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%E4%B8%BA%E5%8F%AF%E7%BC%96%E5%86%99%E8%84%9A%E6%9C%AC%E7%9A%84%E5%AF%B9%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%E4%BA%8E%E6%95%B0%E6%8D%AE%E4%B8%AD%E5%AD%98%E5%9C%A8%E5%99%AA%E5%A3%B0%EF%BC%8C%E6%88%91%E7%BB%8F%E5%B8%B8%E4%BB%8E%E5%9B%BE%E5%BD%A2%E7%94%9F%E6%88%90%E5%99%A8%E4%B8%AD%E4%BF%9D%E5%AD%98%E6%A0%B7%E6%9D%A1%E5%B9%B3%E6%BB%91%E5%85%AC%E5%BC%8F%E5%B9%B6%E8%A6%86%E7%9B%96%E5%88%86%E7%B1%BB%E5%8F%98%E9%87%8F%EF%BC%8C%E7%84%B6%E5%90%8E%E5%B0%86%E5%85%AC%E5%BC%8F%E4%BF%9D%E5%AD%98%E5%88%B0%E6%95%B0%E6%8D%AE%E8%A1%A8%E4%B8%AD%E3%80%82%20%E6%88%91%E7%BB%8F%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%9F%E7%BC%96%E5%86%99%E5%AE%83%E7%9A%84%E8%84%9A%E6%9C%AC%E3%80%82%E5%9C%A8%E6%A3%80%E6%9F%A5%E4%BA%86%E8%84%9A%E6%9C%AC%E6%8C%87%E5%8D%97%E4%B8%AD%E6%9C%89%E5%85%B3%E6%89%A7%E8%A1%8C%E5%B5%8C%E5%85%A5%E5%BC%8F%E7%BA%A2%E8%89%B2%E4%B8%89%E8%A7%92%E5%BD%A2%E9%80%89%E9%A1%B9%E7%9A%84%E9%83%A8%E5%88%86%E5%90%8E%EF%BC%8C%E6%88%91%E6%97%A0%E6%B3%95%E5%B0%86%E5%B9%B3%E6%BB%91%E5%99%A8%E8%A7%86%E4%B8%BA%E5%8F%AF%E7%BC%96%E5%86%99%E8%84%9A%E6%9C%AC%E7%9A%84%E5%AF%B9%E8%B1%A1%E3%80%82%20%E8%AF%B7%E4%BD%BF%E4%BF%9D%E5%AD%98%E6%A0%B7%E6%9D%A1%E7%BA%BF%E5%85%AC%E5%BC%8F%E5%8F%98%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%9A%E8%BF%87%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%A1%AE%E5%AE%9E%E6%84%8F%E8%AF%86%E5%88%B0%E5%8F%AF%E4%BB%A5%E5%B0%86%20Bivariate%20%E5%B9%B3%E5%8F%B0%E7%9A%84%E6%A0%B7%E6%9D%A1%E5%87%BD%E6%95%B0%E4%B8%8E%20By%20%E5%8F%98%E9%87%8F%E4%B8%80%E8%B5%B7%E4%BD%BF%E7%94%A8%E3%80%82%20%E6%88%91%E7%A1%AE%E5%AE%9E%E6%9B%B4%E5%96%9C%E6%AC%A2%E5%9B%BE%E5%BD%A2%E7%94%9F%E6%88%90%E5%99%A8%E4%B8%AD%E7%9A%84%E9%BB%98%E8%AE%A4%E6%A0%B7%E6%9D%A1%E6%9B%B2%E7%BA%BF%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%8A%A8%E5%8C%96%E5%92%8C%E8%84%9A%E6%9C%AC%E7%BC%96%E5%86%99%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%E5%A4%8D%EF%BC%9A%E4%BD%BF%E5%9B%BE%E5%BD%A2%E7%94%9F%E6%88%90%E5%99%A8%E4%B8%AD%E7%9A%84%20Smoother%20%E6%88%90%E4%B8%BA%E5%8F%AF%E7%BC%96%E5%86%99%E8%84%9A%E6%9C%AC%E7%9A%84%E5%AF%B9%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%AE%A4%E4%B8%BA%E8%BF%99%E4%B8%AA%E9%97%AE%E9%A2%98%E5%B7%B2%E8%A2%AB%E6%88%91%E5%9B%9E%E7%AD%94%E7%9A%84%E7%9B%B8%E5%85%B3%E9%97%AE%E9%A2%98%E6%89%80%E5%8F%96%E4%BB%A3%EF%BC%8C%E5%9B%A0%E6%AD%A4%E6%88%91%E5%B0%86%E4%B8%BA%E9%81%87%E5%88%B0%E6%AD%A4%E9%97%AE%E9%A2%98%E7%9A%84%E4%BB%BB%E4%BD%95%E4%BA%BA%E5%8F%91%E5%B8%83%E7%9B%B8%E5%90%8C%E7%9A%84%20JSL%E3%80%82%20%E5%B0%BD%E7%AE%A1%E6%88%91%E5%B8%8C%E6%9C%9B%E8%BF%99%E4%B8%AA%E8%84%9A%E6%9C%AC%E8%83%BD%E5%A4%9F%E5%AE%9E%E7%8E%B0%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%A1%AE%E5%AE%9E%E6%B2%A1%E6%9C%89%20Smoother%20%E5%AF%B9%E8%B1%A1%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%E5%A4%8D%EF%BC%9A%E4%BD%BF%E5%9B%BE%E5%BD%A2%E7%94%9F%E6%88%90%E5%99%A8%E4%B8%AD%E7%9A%84%20Smoother%20%E6%88%90%E4%B8%BA%E5%8F%AF%E7%BC%96%E5%86%99%E8%84%9A%E6%9C%AC%E7%9A%84%E5%AF%B9%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%E4%B8%BA%E4%BF%A1%E6%81%AF%EF%BC%8C%E8%A6%81%E4%BB%8E%E5%8F%8C%E5%8F%98%E9%87%8F%E4%B8%AD%E7%9A%84%E5%9B%BE%E5%BD%A2%E7%94%9F%E6%88%90%E5%99%A8%E8%8E%B7%E5%BE%97%E7%9B%B8%E5%90%8C%E7%9A%84%E7%BA%BF%EF%BC%8C%E8%AF%B7%E5%9C%A8%E7%BA%A2%E8%89%B2%E4%B8%89%E8%A7%92%E5%BD%A2%20%26gt%3B%20%E7%81%B5%E6%B4%BB%20%26gt%3B%20%E6%8B%9F%E5%90%88%E6%A0%B7%E6%9D%A1%E7%BA%BF%E4%B8%8B%E9%80%89%E6%8B%A9%E2%80%9C%E5%85%B6%E4%BB%96...%E2%80%9D%EF%BC%8C%E4%BD%BF%E7%94%A8%20lamda%200.05%EF%BC%88%E5%9B%BE%E5%BD%A2%E7%94%9F%E6%88%90%E5%99%A8%E4%B8%AD%E7%9A%84%E9%BB%98%E8%AE%A4%E5%80%BC%EF%BC%89%E5%B9%B6%E9%80%89%E4%B8%AD%E2%80%9C%E6%A0%87%E5%87%86%E5%8C%96%20X%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} );