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%3EMachen%20Sie%20Smoother%20im%20Graph%20Builder%20zu%20einem%20skriptf%C3%A4higen%20Objekt%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-417822%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EAufgrund%20des%20Rauschens%20in%20meinen%20Daten%20speichere%20ich%20h%C3%A4ufig%20die%20Spline-Gl%C3%A4ttungsformel%20aus%20Graph%20Builder%20mit%20%C3%9Cberlagerung%20einer%20kategorialen%20Variablen%20und%20speichere%20die%20Formel%20dann%20in%20der%20Datentabelle.%20Ich%20benutze%20es%20so%20oft%2C%20dass%20ich%20es%20gerne%20per%20Skript%20schreiben%20k%C3%B6nnte.Nachdem%20ich%20den%20Abschnitt%20des%20Scripting%20Guide%20%C3%BCber%20die%20Ausf%C3%BChrung%20eingebetteter%20Red%20Triangle-Optionen%20gelesen%20habe%2C%20kann%20ich%20den%20Smoother%20nicht%20als%20skriptf%C3%A4higes%20Objekt%20sehen.%20Bitte%20sorgen%20Sie%20daf%C3%BCr%2C%20dass%20ich%20die%20Spline-Gl%C3%A4ttungsformel%20in%20JSL%20speichern%20kann.%20Mir%20ist%20klar%2C%20dass%20es%20m%C3%B6glich%20ist%2C%20eine%20Spline-Funktion%20von%20der%20Bivariate-Plattform%20mit%20einer%20By-Variablen%20zu%20verwenden.%20Mir%20gef%C3%A4llt%20die%20standardm%C3%A4%C3%9Fige%20Spline-Anpassung%20im%20Graph%20Builder%20besser.%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%3EAutomatisierung%20und%20Skripterstellung%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%3EBetreff%3A%20Smoother%20in%20Graph%20Builder%20zu%20einem%20skriptf%C3%A4higen%20Objekt%20machen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-421758%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIch%20denke%2C%20diese%20Frage%20wurde%20durch%20Ihre%20verwandte%20Frage%2C%20die%20ich%20beantwortet%20habe%2C%20ersetzt%2C%20daher%20werde%20ich%20die%20gleiche%20JSL%20f%C3%BCr%20alle%20ver%C3%B6ffentlichen%2C%20die%20nur%20auf%20diese%20Frage%20sto%C3%9Fen.%20Obwohl%20ich%20hoffe%2C%20dass%20dieses%20Skript%20das%20tut%2C%20was%20Sie%20wollen%2C%20stimmt%20es%20dennoch%2C%20dass%20es%20per%20se%20kein%20Smoother-Objekt%20gibt.%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%3EBetreff%3A%20Smoother%20in%20Graph%20Builder%20zu%20einem%20skriptf%C3%A4higen%20Objekt%20machen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-421143%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EZur%20Information%3A%20Um%20dieselbe%20Linie%20aus%20dem%20Graph%20Builder%20in%20Bivariate%20zu%20erhalten%2C%20w%C3%A4hlen%20Sie%20%E2%80%9EAndere...%E2%80%9C%20unter%20%E2%80%9ERotes%20Dreieck%20%26gt%3B%20Flexibel%20%26gt%3B%20Spline%20anpassen%E2%80%9C%2C%20verwenden%20Sie%20ein%20Lamda%20von%200%2C05%20(Standard%20im%20Graph%20Builder)%20und%20aktivieren%20Sie%20%E2%80%9EX%20standardisieren%E2%80%9C.%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} );