Boxplot showing wrong data

Hi folks,

I am currently creating a bunch of boxplots with plotly in R and although my data shows an increasing trend when it comes to the means and medians but my boxplots show a decrease. I checked my csv file manually several times and I don’t understand where plotly gets the data wrong?
Thanks a lot.

Best,
Joko

data1<-read.csv(“PTOA_180821_density_zones.csv”)
data1$time<-factor(data$time, levels=c(“intact”, “1week”, “4week”))
data1$density<-as.numeric(data1$density)

plot_ly(data1, x=~time, y=~density, color = ~zone, type=“box”, colors=c("#728FCE", “#3975cb”, “#003c91”))%>%
layout(boxmode = “group”)%>%
layout(yaxis=list(title=“cell density (cells/mm2)”,range = c(0, 150)))