# Scatter Plot

A Scatter Plot in *Slide3 *allows you to plot any two random variables from a Probabilistic Analysis or Factor of Safety, against each other on the same plot. Typically, the Scatter Plot is used to plot Factor of Safety versus an input data Random Variable, to observe the correlation between the two.

To create a Scatter Plot:

- Select Scatter Plot from the toolbar or the Statistics > Scatter plot menu.
- In the Scatter Plot dialog, select the data you would like to plot, on the Horizontal Axis and the Vertical Axis. The following data can be selected, for either axis:
- Any Random Variable that you have defined for the Probabilistic Analysis.
- The Factor of Safety for any analysis method which was used.

- You can choose to highlight data on the plot, according to user-defined criteria, by selecting the Highlight Data checkbox, and defining your criteria. See below for details.
- Select the Plot button to generate the Scatter Plot.
- Once a plot is generated, there are many different options available, if you right-click the mouse on the plot. See below for details.

## Highlight Data

The Highlight Data option for Scatter Plots, works in the same manner as described for a Histogram Plot. See the Histogram Plot topic for details. On a Scatter Plot, when data is highlighted, the data points will be displayed as different color with legend indicating the highlighted data on the plot.

## Correlation Coefficient

The Correlation Coefficient indicates the degree of correlation between the two variables plotted. The Correlation Coefficient can vary between -1 and 1 where numbers close to zero indicate a poor correlation, and numbers close to 1 or -1 indicate a good correlation. Note that a negative correlation coefficient simply means that the slope of the best fit linear regression line is negative.

## User-Defined Correlation Coefficient

In the *Slide* Model program, you can specify a user-defined correlation coefficient, between Cohesion and Friction Angle, for a Mohr-Coulomb material. In this case, the two variables will automatically be correlated, when the samples are created. You can use a Scatter Plot to observe the actual correlation between the two variables, which was generated by the sampling. The actual correlation should be close (but not necessarily equal) to the value you have specified. However, this may not always be true, especially if you have specified a correlation coefficient close to 1 (or -1), and you are using distributions other than the Normal Distribution.

## Alpha and Beta

Alpha and beta represent the y-intercept and slope, respectively, of the best fit linear regression line to the scatter plot data. The display of the linear regression line can be toggled on or off, by selecting the Regression Line option in the right click menu, on a Scatter Plot.

## Chart Options

The chart option on the left side allows you to modify the graph with drawing / settings of the plot. Drawing section allows you to change the labels while setting allows you to adjust the graph settings such as axis alignment, min/max, etc.

## Right Click Options

Other options are available if you right-click on a Scatter Plot. For example:

- Select the Change Plot Data option to change the data viewed on the plot.
- Regression line: Toggle on/off to view/hide the regression line
- Plot in Excel: you can either right click a chart or click the 'export to excel' button in the toolbar. An Excel application will open and the data will be exported in columns, and a chart object duplicating what was in the Rocscience program will also appear.
- Copy Data to Clipboard: allows you to copy and paste the data to other spreadsheet or word file.

Experiment with the different options available in the right-click menu.