cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
CYLiaw
Level III

Is it possible to use a custom equation to fit the data in graph builder?

Hi!

I've used graph builder to plot the data with grouped X (as shown in the attached image).  I wanted to fit all three curves using an exponential growth function. I only found Line of Fit and Smoother functions, but these are not what I would like to do.  I was wondering if it is possible to customize the fitting equation and also display the confidence interval of the fit as well as the statistics of the fit (e.g. R^2, F-test, equation) in the graph?

 

Thanks!

11 REPLIES 11
txnelson
Super User

Re: Is it possible to use a custom equation to fit the data in graph builder?

If you are creating the graph using JSL, it is a simple modification to delete the Axis Box() associated with the right hand axis.
Can you share the script that creates the graph?
Jim
JohnMarkham
Level II

Re: Is it possible to use a custom equation to fit the data in graph builder?

Thanks. After some fiddling, I realized that de selecting the labels box in the axis setting did the trick as well.  Here is my graph and script

 

JohnMarkham_0-1608083756372.png

 

Graph Builder(
    Show Legend( 0 ),
    Show Title( 0 ),
    Variables(
        X( :Name( "May-August precip" ) ),
        Y( :Name( "Ndfa (%)" ) ),
        Y( :Exponential 3P, Position( 1 ), Side( "Right" ) ),
        Overlay( :Site )
    ),
    Elements( Points( X, Y( 1 ), Legend( 13 ) ), Formula( X, Y( 2 ), Legend( 12 ) ) ),
    SendToReport(
        Dispatch(
            {},
            "Exponential 3P",
            ScaleBox,
            {Min( 60 ), Max( 105 ), Inc( 10 ), Minor Ticks( 0 ), Label Row(
                {Automatic Font Size( 0 ), Automatic Tick Marks( 0 ), Show Major Labels( 0 ), Show Major Ticks( 0 ), Show Minor Ticks( 0 )}
            )}
        ),
        Dispatch( {}, "", GraphBuilderComponentBox( 7 ), {Select} ),
        Dispatch( {}, "", AxisBox, {Select} ),
        Dispatch( {}, "", AxisBox( 2 ), {Select} ),
        Dispatch( {}, "Y r title", TextEditBox, {Set Text( "" )} ),
        Dispatch( {}, "Graph Builder", FrameBox, {Select} )
    )
);

 

Recommended Articles