Introduction
This article describes how to create a scatter plot visualization that displays the values of two different variables as points. The data for each point is represented by its horizontal (x) and vertical (y) positions on the visualization.
Requirements
A scatter plot displays data for a set of variables (columns in a table), where each row of the table is represented by a point in the scatter plot. The variables can be both categorical and numeric.
Method 1 - Default scatter plot
- From the toolbar, go to Visualization > Scatter > Scatter.
- From the object inspector, go to Inputs > DATA SOURCE and select either an existing output on a Page (such as a table or R output) in the Output in 'Pages' drop-down, or select the variables from your Data Sets tree to represent the X coordinates and Y coordinates.
- Click Calculate.
OPTIONAL: You can customize the sizes and colors. In the example above, I have selected Input > DATA
SOURCE > Labels and selected an additional variable to label the points.
Method 2 - Labeled scatter plot
- From the toolbar, go to Visualization > Scatter > Labeled Scatter.
- From the object inspector, go to Inputs > DATA SOURCE and select either an existing output on a Page (such as a table or R output) in the Output in 'Pages' drop-down, or select the variables from your Data Sets tree to represent the X coordinates and Y coordinates.
- Click Calculate.
See Also
How to Add Logos to a Scatter Plot
Comments
0 comments
Article is closed for comments.