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.
data1$time<-factor(data$time, levels=c(“intact”, “1week”, “4week”))
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)))