cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
JMP Wrapper for Overlaying Densities using R and GGplot2
julian
Community Manager Community Manager

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.

 

6972_Screen Shot 2014-07-09 at 9.12.41 PM.png6973_Screen Shot 2014-07-09 at 9.12.44 PM.png