如何在曲线图上设置X轴范围?

时间:2018-03-11 02:51:10

标签: r plotly

我正在使用R版的情节。这就是我想要的:

x = 1:100
y = 1:100
plot_ly(x, y)

我希望图表只显示x> 20和x <40的位置,忽略其他部分。怎么做?

1 个答案:

答案 0 :(得分:3)

设置layout的{​​{1}}。

xaxis

enter image description here