I am fairly new to R and want to combine 2 basic box plots into 1.
My code so far is...
library(tidyverse)
library(vegan)
spiders <- read_csv(file = "Spider Data.csv")
class(spiders)
str(spiders)
boxplot(spiders$Length_mm ~ spiders$Distance)
boxplot(spiders$Length_mm ~ spiders$Cover)
Here are the plots I have so far as well as something like what I want to create (ignore the label names in the coloured graph, I just took the picture from google, but I want something similar)
my first boxplot
my second boxplot
what I want my graph to look like (ignore labels)