my dataset is available here for testing: Online CSV editor and viewer
basically, I want to have my y-variable OEE to be the starting from 0 %, which I achieve, for all, except Line 1. I am puzzled why Line 1 is an exception.
Code to produce the plot is as below:
OEE_Outputs_ByLine_Daily$Metrics <- as.factor(OEE_Outputs_ByLine_Daily$Metrics) OEE_Outputs_ByLine_Daily$Metrics2 <- relevel(OEE_Outputs_ByLine_Daily$Metrics,'OEE') g <- ggplot(OEE_Outputs_ByLine_Daily, aes(fill=Metrics2, y=Percent, x=Date)) + geom_bar(position="stack", stat="identity") + geom_col(position = position_stack(reverse = TRUE)) + facet_wrap(~Line, strip.position = "bottom") + labs(title="Different Metrics (%) vs Date",x="",y="") ggplotly(g)