I'm trying to create an x-axis that decreases then increases. It's for a lab where we cooled down shrimp and counted the pleopod beats every 2C change.
Here's one set of the data:
Temperature | Starved Individual 1 |
---|---|
20 | 57 |
18 | 53 |
16 | 54 |
14 | 50 |
12 | 49 |
10 | 43 |
8 | 41 |
6 | 42 |
4 | 39 |
6 | 41 |
8 | 45 |
10 | 49 |
12 | 57 |
14 | 60 |
16 | 57 |
18 | 58 |
20 | 71 |
This is the code I've used and the plot it creates, but I can't figure out how to make the x-axis go from 20-4-20.
s1 <- ggplot(wide_artemia_data, aes(temperature, beats_s1)) +
xlab("Temperature (C)") +
ylab("Number of Pleopod Beats over 30 sec")
s1 + geom_point()
This is my first time trying to learn to code and use R studio, so any help or tips would be greatly appreciated!