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%3Efaire%20de%20Smoother%20dans%20Graph%20Builder%20un%20objet%20scriptable%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-417822%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJ'enregistre%20fr%C3%A9quemment%20la%20formule%20de%20lissage%20spline%20de%20Graph%20Builder%20avec%20une%20superposition%20d'une%20variable%20cat%C3%A9gorielle%2C%20puis%20j'enregistre%20la%20formule%20dans%20la%20table%20de%20donn%C3%A9es%20en%20raison%20du%20bruit%20dans%20mes%20donn%C3%A9es.%20Je%20l'utilise%20si%20souvent%20que%20j'aimerais%20pouvoir%20le%20scripter.Apr%C3%A8s%20avoir%20v%C3%A9rifi%C3%A9%20la%20section%20du%20Guide%20de%20script%20sur%20l'ex%C3%A9cution%20des%20options%20du%20triangle%20rouge%20incorpor%C3%A9%2C%20je%20ne%20peux%20pas%20voir%20le%20Smoother%20comme%20un%20objet%20scriptable.%20Veuillez%20faire%20en%20sorte%20que%20l'enregistrement%20de%20la%20formule%20de%20spline%20plus%20lisse%20soit%20quelque%20chose%20que%20je%20puisse%20faire%20%C3%A0%20partir%20de%20JSL.%20Je%20me%20rends%20compte%20qu'il%20est%20possible%20d'utiliser%20une%20fonction%20spline%20de%20la%20plate-forme%20Bivariate%20avec%20une%20variable%20By.%20J'aime%20mieux%20l'ajustement%20de%20la%20spline%20par%20d%C3%A9faut%20dans%20Graph%20Builder.%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%3EGraphique%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EScript%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-421143%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20faire%20de%20Smoother%20dans%20Graph%20Builder%20un%20objet%20scriptable%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-421143%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%C3%80%20titre%20d'information%2C%20pour%20obtenir%20la%20m%C3%AAme%20ligne%20%C3%A0%20partir%20du%20g%C3%A9n%C3%A9rateur%20de%20graphiques%20dans%20Bivariate%2C%20choisissez%20%C2%AB%26nbsp%3BAutre...%26nbsp%3B%C2%BB%20sous%20le%20triangle%20rouge%26nbsp%3B%26gt%3B%20Flexible%26nbsp%3B%26gt%3B%20Ajuster%20la%20spline%2C%20utilisez%20un%20lamda%20de%200%2C05%20(par%20d%C3%A9faut%20dans%20le%20g%C3%A9n%C3%A9rateur%20de%20graphiques)%20et%20cochez%20%C2%AB%26nbsp%3BStandardiser%20X%26nbsp%3B%C2%BB.%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%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%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} );