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

**URL:** <https://community.plotly.com/t/setting-only-lower-limit-for-y-axis-in-plotly-r-bar-chart/45845>\
**Category:** Plotly R\
**Created:** [October 8, 2020, 2:33pm UTC](https://community.plotly.com/t/setting-only-lower-limit-for-y-axis-in-plotly-r-bar-chart/45845 "2020-10-08T14:33:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nrakeshchandran](https://avatars.discourse-cdn.com/v4/letter/n/ba9def/32.png) [@nrakeshchandran](https://community.plotly.com/u/nrakeshchandran)\
**Post date:** [October 8, 2020, 2:33pm UTC](https://community.plotly.com/t/setting-only-lower-limit-for-y-axis-in-plotly-r-bar-chart/45845/1 "2020-10-08T14:33:50Z")

</div>

Hi,

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”)))
