I have the following dataframe:
Year Ocean O2_Conc
<dbl> <chr> <dbl>
1 2010. Reference 0.000237
2 2010. Pacific 0.000165
3 2010. Southern 0.000165
4 2012. Reference 0.000237
5 2012. Pacific 0.000165
6 2012. Southern 0.000165
7 2012. Reference 0.000237
8 2012. Pacific 0.000165
9 2012. Southern 0.000165
I would like to plot this data in ggplot2 to produce a scatter plot with different oceans as different colours. I have tried the following code, which has worked for similar data:
ggplot(data=df, aes(x="Year", y="O2_Conc", color="Ocean")) + geom_point()
This has given me this output. Can someone explain why the numbers are not coming through on the graph's axes? GGplot output