Publication date: 08/13/2020

## Overlay Plots

Like scatterplots, overlay plots show the relationship between two or more variables. However, if one of the variables is a time variable, an overlay plot shows trends across time better than scatterplots do.

Figure 4.31 Example of an Overlay Plot Note: To plot data over time, you can also use bubble plots, control charts, and variability charts. For more information about Graph Builder and bubble plots, see Graph Builder in Essential Graphing. See Control Chart Builder and Variability Gauge Charts in Quality and Process Methods for information about control charts and variability charts.

### Scenario

This example uses the Stock Prices.jmp data table, which contains data on the price of a stock over a three-month period.

A potential investor wants to explore the following questions:

Has the stock’s closing price changed over the past three months?

To answer this question, use an overlay plot of the stock’s closing price over time.

How do the stock’s high and low prices relate to each other?

To answer this question, use another overlay plot of the stock’s high and low prices over time.

Create the first overlay plot to answer the first question, and then create a second overlay plot to answer the second question.

### Create the Overlay Plot of the Stock’s Price over Time

1. Select Help > Sample Data Library and open Stock Prices.jmp.

2. Select Graph > Graph Builder.

3. Select Close and click Y.

4. Select Date and click X.

Figure 4.32 Overlay Plot with Smoother 5. Hold down the Control key and click the Smoother icon above the graph to remove the smoother line.

Figure 4.33 Overlay Plot of the Closing Price over Time ### Interpret and Interact with the Overlay Plot

The overlay plot shows that the closing stock price has been decreasing over the last several months. To see the trend more clearly, connect the points.

1. Hold down the Shift key and click the Line icon above the graph.

Figure 4.34 Connected Points The potential investor can see that although the stock price has gone up and down over the past three months, the overall trend has been downward.

### Create the Overlay Plot of the Stock’s High and Low Prices

Use an overlay plot to plot more than one Y variable. For example, suppose that you want to see both the high and the low prices on the same plot.

1. Follow the steps in Create the Overlay Plot of the Stock’s Price over Time, this time assigning both High and Low to the Y role.

2. Connect the points and add grid lines as shown in Interpret and Interact with the Overlay Plot.

Figure 4.35 Two Y Variables The legend at the bottom of the plot shows the colors and markers used for the High and Low variables in the graph. The overlay plot shows that the High price and Low price track each other very closely.
{"ft_lang_label":"__label__en","ft_lang_prob":0.8933194,"math_prob":0.8255733,"size":2936,"snap":"2020-34-2020-40","text_gpt3_token_len":617,"char_repetition_ratio":0.14938608,"word_repetition_ratio":0.027027028,"special_character_ratio":0.21083106,"punctuation_ratio":0.10641892,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95434594,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"im_url_duplicate_count":[null,2,null,1,null,null,null,1,null,null,null,1,null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-22T21:18:06Z\",\"WARC-Record-ID\":\"<urn:uuid:2e72f1f2-7b1d-4bcf-ab8b-3af8a4979c4d>\",\"Content-Length\":\"13805\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:09f8f503-1e23-4c53-abc3-b194e2afc612>\",\"WARC-Concurrent-To\":\"<urn:uuid:c87e4e97-bf72-4746-a9b4-8d0175351552>\",\"WARC-IP-Address\":\"104.68.247.134\",\"WARC-Target-URI\":\"https://www.jmp.com/support/help/en/15.2/jmp/overlay-plots.shtml\",\"WARC-Payload-Digest\":\"sha1:ETWXBICZZGMVLD6SJOWO3ELLAL7YST2X\",\"WARC-Block-Digest\":\"sha1:MZJFD2X7TWUNXALSN4DHNLDXDXVHGL3E\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600400206763.24_warc_CC-MAIN-20200922192512-20200922222512-00618.warc.gz\"}"}