

This script is the next best thing.The chart uses a series of dots to display insights into varying sets of data.
#SCATTER PLOT WITH TWO SETS OF DATA HOW TO#
In the next section of code, replace x1 and y1 with your column names for the first x-y pairįor (i = 1, i Stack, but couldn't figure out how to make that work (here's a challenge for all you JMP users!). New Column( "Machine", Character, "Nominal") New Column( "y", Numeric, "Continuous", Format( "Best", 12 ) ), New Column( "x", Numeric, "Continuous", Format( "Best", 12 ) ), For your case you would point the dt variable to your own table. New Column( "y2", Numeric, "Continuous", Format( "Best", 12 ), Set Values( ) ) New Column( "x2", Numeric, "Continuous", Format( "Best", 12 ), Set Values( ) ), New Column( "y1", Numeric, "Continuous", Format( "Best", 12 ), Set Values( ) ),

New Column( "x1", Numeric, "Continuous", Format( "Best", 12 ), Set Values( ) ), Create an example tableĭt = New Table( "Untitled 2", Add Rows( 4 ), Note that the first few lines define a table similar to yours, referenced by the variable dt. This is the sort of result you want to end up with: The problem is that you need to stack x2 and y2 below x1 and y1, and add a column differentiating the two sets of data. It starts with a table with four columns: x1, y1, x2, y2. I've put together a script that should do what you want. Held the shift key and selected the line element button to add that.ĭepending on how you count, that is 5 steps, once you have the data setup properly by thinking in terms of variables. I clicked the smoother button to remove the smoother. So here is an example table:ĭrag Omega to the X-axis. But the interactive steps are quite easy once the data is set up properly. Your data table should have three columns, one for each variable, just as solution showed a JMP script because that is the easiest way to demonstrate a solution in this forum. You have a third variable called Machine. You have Y-values (I believe it is called Velox?). You have an X variable (I think it is called Omega). I believe the main issue that you are having is how to set up the data correctly. I have included another example to show that the "two sets of data" do not need to have the same x-values. The identified solution is the way to to do it.

Given that I am still new to JMP an interactive solution would be preferable, but if a script is the only possible way then I will accept that as well. Attached is both datasets plotted in graph builder, and you can see the problem.Īll I want is the x range to be fixed, and for the multiple y to be plotted against an x axis. So this results in one of the datasets being either compressed or stretched, depending which x is used. Rather than D1 being plotted against "it's" x, and V1 being plotted "it's" x, both data sets are being plotted using only one of the x ranges. I have tried dragging both x domains to the x axis, but this does not result in the desired behaviour. I have tried to use Graph Builder to add these data to the same graph, to overlay one on top of the other. Attached are plots of data from the two machines (D1 and V1). Definitions of x (angle in arcseconds) and y (intensity in CPS) are the same.įor both data sets the main reflection occurs at approximately 0 arcseconds (as expected). So I have these two datasets and I need to overlay them on the same plot. However, the spacing of the data points is different between the two machines. The data is taken over the same domain, from roughly -6000 to +3000 arc seconds. One from an older machine, one from a brand new machine. The problem: I have two sets of XRD data. In OriginPro this is really easy, but I am having to use JMP for work for the first time and so I am a total novice with this program. I feel like this should be really very straight forward, but I am struggling to work out how to do this.
