Sex | BW |
---|---|
F | 2.15 |
M | 2.55 |
F | 2.95 |
F | 2.70 |
M | 2.20 |
F | 1.85 |
M | 2.55 |
M | 2.60 |
Scatterplots in Jamovi
Cheatsheet
This work was developed using resources that are available under a Creative Commons Attribution 4.0 International License, made available on the SOLES Open Educational Resources repository by the School of Life and Environmental Sciences, The University of Sydney.
1 About
A scatterplot is a graph that shows the relationship between two variables by displaying data points on a Cartesian plane. Each point represents an observation with its position determined by the values of the two variables. Scatterplots help identify trends, clusters, and outliers in the data.
- You have Jamovi installed ideally 2.5.7.0 or later.
- You can follow instructions to select, click and drag elements in Jamovi.
The data should be in a long format (also known as tidy data), where each row is an observation and each column is a variable (Figure 1). If your data is not already structured this way, reshape it manually in a spreadsheet program or in R using the pivot_longer()
function from the tidyr
package.
F | M |
---|---|
2.15 | 2.55 |
2.95 | 2.20 |
2.70 | 2.55 |
1.85 | 2.60 |
2 Data
For this cheatsheet we have two separate datasets. The first is part of the possums dataset used in BIOL2022 labs. Two numerical variables are available: ExpBLUP
and AactiveTBLUP
. The data is available in the file possums-blup.csv
.
The second dataset is data were collected and made available by Dr. Kristen Gorman and the Palmer Station, Antarctica LTER, a member of the Long Term Ecological Research Network. The day may be downloaded manually but is available below as penguins.csv
.
3 Import data
- Click on the Menu icon:
- Select Open > Browse, and navigate to the downloaded file.
- Click Open to load the data.
4 Plot
- Click on the Analyses tab.
- Select Exploration > Scatterplot.
- Drag the variables you want to plot into the X and Y boxes. The variables should both be numerical.
- If you want to colour the points by a categorical variable, drag the categorical variable into the Color box.
- Explore the options for Regression Line and Marginals by clicking on them. Note: depending on the version of Jamovi, these options may be located in different places or will not be available. The point is that you can explore additionality fucntionality with ease.
- Rename variables by clicking on the variable name in the Variables tab.
5 Export
To export the plot, right click on the plot, select Image > Export… > Browse and rename the file before clicking on the Save button.