AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
![]() Notice that as we drag up and down, the width of the bins in the histogram changes, enabling us to see more of the details in the distribution. To look more closely at the distribution of a variable, let's select the grabber tool and click and drag to take a closer look at the distribution of Impurity. Notice, for example, that Impurity is slightly right-skewed, and that Temp is mounded in shape and symmetric around this central peak. The histograms enable you to see the shape, centering, and spread of the distributions for the four variables. Next time you run this analysis, the histograms will be both horizontal and stacked. Finally, we click OK to accept this change and close the Preferences window. Then we select Stack from the Options list. We select Platforms from the Preference Group, and select Distribution from the Platforms list. To do this, we go to File and then Preferences (or JMP and then Preferences on a Mac). Note that, if you prefer horizontal and stacked histograms, you can set a preference. We enter 2 in the box and click OK to display two histograms per row. Let's say, for example, that we want to display these histograms in two rows, with two histograms in each row. To display these histograms in a row, we use the Arrange in Rows option from the top red triangle. We select Stack from the top red triangle to create horizontal histograms that are stacked one on top of the other. You can easily change the layout of the histograms from vertical to horizontal, and can also stack the histograms. Vertical histograms enable you to display output for many variables at a time in the same window. By default, vertical histograms are displayed. We click OK to create histograms for the four variables. This option turns off other graphical and numerical summaries that display by default in the Distribution platform. We select Impurity through Reaction Time for Y, Columns, and select the Histograms Only box. To start, we select Distribution from the Analyze menu. We also show how to interact with linked histograms to explore potential relationships between variables. One option is also to remove the effect of users preferences, but depending on the platform this might take a lot of effort to set all default values to 1 or 0.In this video, we show how to create histograms using the Distribution platform in JMP for the Impurity data. Names Default To Here(1) Īxisbox = (Report(dist) << XPath("//ScaleBox")) Īxisbox << Add Ref Line(55, "Dotted", red, "F mean", 2) Usually I use XPath with some combination of << child, << sib, << parent and so on. Sometimes these have to be built a bit case by case. If there's multiple distributions in the report, loop through or be more specific when grabbing the xpath. use xpList instead of referencing an axisbox index. XpList = myrpt << XPath("//DropBox/BorderBox/AxisBox") // returns a list of matching occurrences Hopefully this stands the test of time, but it's worked for me so far. Meaning, don't just look for an axis box as there could be 4 of them, rather look for the axis box in a border box in a drop box, which appears to be unique to the 'main' axis. You can look at the xml, or look at the properties of an output report to see what might work. I probably could have found a workaround there, but ended up using xpath. I tried doing a 'get items' but I think it always returned 4 even though some were empty. But if the script is deployed widely, you need to account for other user preference settings. if you always have the same settings, you can hard code it and it should be fine. But if you add any of the other axes, the index becomes 2, 3 or 4 (the max of the total axes displayed. ![]() In the distribution platform, if you don't have the probability, density, and show counts axes set to be displayed, then the index for the axis box of the distribution's data is 1, meaning you can reference it with report(xxxx), similar to Jarmo's post above. I would not expect to be an issue in graph builder, mostly because I don't think user preferences come into play as much. It's related to the Distribution platform specifically (not graph builder which was in the original question), but may apply to other platforms depending on user preferences, I'm not sure. This is tangentially related but I'll put it here anyway. ![]()
0 Comments
Read More
Leave a Reply. |