✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Setting only lower limit for Y-Axis in Plotly R Bar Chart


I am trying to set only the lower limit of a bar chart. In the example below I have used range() for setting both min and max. How can I retain only the min for Y-Axis and keep the max limit dynamic?

plot_ly(Customer_Inp_Vol, x=~Period, y =~Volume, color = ~Parameter,
width = 400, height = 400,
layout(title = “”, legend = list(orientation = ‘h’, x = 0, y = -0.4, font = list(size = 10)),
yaxis = list(title=“Volume - Cumulative (L)”,range = c(“150000”,“300000”)))