JMP Wrapper for Overlaying Densities using R and GGplot2
Jul 9, 2014 9:33 PM
| Last Modified: Jan 20, 2018 1:41 PM
This script utilizes the JMP connection to R to create smooth-curve density plots with GGplot2, broken apart by the levels of a grouping variable. Means for each group can be plotted along with density curves. This wrapper can be modified to utilize other GGplot2 and R-graphing packages by changing the commands sent to R.
Instructions: Run the attached script and specify a response variable and grouping variable. If you would like mean lines plotted, check the box for "Plot Means." Click "Make Plot" to generate the output, and click "Import Plot to JMP" to capture the output and return the image to a JMP window.
Requirements: Both R and the GGplot2 package must be installed for this script to run. For details about using JMP with R, see the Working with R page on the JMP website.