简体   繁体   English

无法更新x,y轴和主图区域的标签

[英]Unable to update the labels of the x, y axis and the main plot area

I am trying to plot a time series graph but the labels of the xaxis, yaxis and the main area won't change. 我正在尝试绘制时间序列图,但是xaxis,yaxis和主要区域的标签不会更改。 What I can do right in the following code?How do I set the max and min value of the y-axis? 我在下面的代码中可以做什么?如何设置y轴的最大值和最小值?

plot(gfit.acc1, which = 3, type ="l", col= "lightblue", 
   xlab= "3 * GARCHSTD, SP RETURNS, -3 * GARCHSTD" , main ="GARCH volatilities")

To set the max and min value or x-axis or y-axis , use xlim and ylim in plot.window . 要设置最大值和最小值或x-axisy-axisylimplot.window使用xlimplot.window

Adding to your code, 在您的代码中添加

plot(gfit.acc1, which = 3, type ="l", col= "lightblue", 
   xlab= "3 * GARCHSTD, SP RETURNS, -3 * GARCHSTD" , main ="GARCH volatilities"
   plot.window(xlim=c(low, high), ylim=c(high,low)))

For more information, check ?plot and ?plot.window 有关更多信息,请检查?plot?plot.window

PS: Answered this question with the understanding that, you need to know how to set up min and max values for axes. PS:在理解此问题的前提下,您需要知道如何设置轴的最小值和最大值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM