Subscribe Bookmark RSS Feed
julian

Staff

Joined:

Jun 25, 2014

JMP Wrapper for Overlaying Densities using R and GGplot2

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

Article Tags
Contributors