cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Discovery is online this week, April 16 and 18. Join us for these exciting interactive sessions.
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