6.10 Optional: Make a plot with ggpubr

This section is optional

ggpubr is an add on to ggplot. (This means that ggpubr has ggplot as a dependency). Note that the syntax for ggpubr function we use, ggscatter(), has a different syntax (again) than ggplot’s qplot() function and base R’s plot() function.

ggscatter(data = crabs,y = "FL", x = "RW") # use quotes!

End optional section