Hi everyone,
I was recently given an assignment to create a box plot from a set of data that my professor gave us in class.
Everything goes fine until I finish this line of code:
# Libraries
library("tidyverse")
library("ggplot2")
library("dplyr")
library("RColorBrewer")
library("extrafont")
load(file.choose())
d <- d %>% pivot_longer(
cols = 2:3,
names_to = "Depth",
values_to = "Abundance"
)
ggplot(d, aes(Trajectory, Abundance)) +
geom_boxplot()
While I attached a screenshot of the requirements down below for you guys to read, I still need to change the default layout, colors, and fonts, that of which I'm not entirely sure what to do. We had done an assignment before where we had to change those types of things but when I tried incorporating my code from the last assignment over to this one, none if it worked.
[Screenshot of HW - Redacted by mod]