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%3Ehacer%20m%C3%A1s%20suave%20en%20Graph%20Builder%20un%20objeto%20que%20se%20puede%20programar%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-417822%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECon%20frecuencia%20guardo%20la%20f%C3%B3rmula%20m%C3%A1s%20suave%20de%20spline%20de%20Graph%20Builder%20con%20la%20superposici%C3%B3n%20de%20una%20variable%20categ%C3%B3rica%20y%20luego%20guardo%20la%20f%C3%B3rmula%20en%20la%20tabla%20de%20datos%20debido%20al%20ruido%20en%20mis%20datos.%20Lo%20uso%20con%20tanta%20frecuencia%20que%20me%20gustar%C3%ADa%20poder%20escribirlo.Despu%C3%A9s%20de%20haber%20revisado%20la%20secci%C3%B3n%20de%20la%20Gu%C3%ADa%20de%20secuencias%20de%20comandos%20sobre%20la%20ejecuci%C3%B3n%20de%20las%20opciones%20del%20tri%C3%A1ngulo%20rojo%20incrustado%2C%20no%20puedo%20ver%20el%20Suavizador%20como%20un%20objeto%20que%20se%20puede%20programar.%20Por%20favor%2C%20haga%20que%20guardar%20la%20f%C3%B3rmula%20de%20spline%20sea%20algo%20m%C3%A1s%20suave%20que%20pueda%20hacer%20desde%20JSL.%20Me%20doy%20cuenta%20de%20que%20es%20posible%20usar%20una%20funci%C3%B3n%20spline%20de%20la%20plataforma%20Bivariate%20con%20una%20variable%20By.%20Me%20gusta%20m%C3%A1s%20el%20ajuste%20de%20spline%20predeterminado%20en%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%3EGr%C3%A1ficos%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EScripting%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%20hacer%20m%C3%A1s%20suave%20en%20Graph%20Builder%20un%20objeto%20programable%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-421143%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EComo%20informaci%C3%B3n%2C%20para%20obtener%20la%20misma%20l%C3%ADnea%20del%20generador%20de%20gr%C3%A1ficos%20en%20Bivariante%2C%20elija%20'Otro%20...'%20en%20Tri%C3%A1ngulo%20rojo%26gt%3B%20Flexible%26gt%3B%20Ajustar%20spline%2C%20use%20un%20lamda%20de%200.05%20(predeterminado%20en%20el%20generador%20de%20gr%C3%A1ficos)%20y%20marque%20'Estandarizar%20X'.%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} );