R编程 - 在绘图上使用定制包ggfortifty

时间:2017-03-28 14:28:10

标签: r graph time-series

您好我在R中创建了一个时间序列,并使用GGfortify使其看起来很漂亮。

它使用一个名为autoplot的函数,我想更改轴和标题名称,但我不确定如何。

salesARMAplot <-arima(sales, order = c(1,1,1))
FinalForecast <-forecast(sales, x=banter, y= banter,ARMAplot,h=8)
autoplot(FinalForecast)

附图显示了情节。

image

2 个答案:

答案 0 :(得分:0)

尝试在自动曝光功能

中使用以下参数
xlab = "x_label", 
main = "title", 
ylab = "y_label"

答案 1 :(得分:0)

你可以像普通的ggplot对象一样添加它:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<div id="loginBox">
    <div class="alert alert-danger" *ngIf="validLogin === false">
        <strong>Alert!</strong> Wrong Username/Password.
    </div>
    <form class="form-group" #loginForm="ngForm">
        <div class="input-group">
          <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
          <input type="text" class="form-control" placeholder="Username" [(ngModel)]="usernameModel" name="username" #username="ngModel" required />
          <span class="input-group-addon errorBox" *ngIf="username.errors && (username.dirty || username.touched)">
              <i class="glyphicon glyphicon-exclamation-sign" [hidden]="!username.errors.required"></i>
          </span>
        </div>
        <div class="input-group">
          <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
          <input type="password" class="form-control" placeholder="Password" [(ngModel)]="passwordModel" name="password" #password="ngModel" required />
          <span class="input-group-addon errorBox" *ngIf="password.errors && (password.dirty || password.touched)">
              <i class="glyphicon glyphicon-exclamation-sign" [hidden]="!password.errors.required"></i>
          </span>
        </div>
        <button class="btn btn-primary btn-block" [disabled]="!loginForm.valid" (click)="homeNav()" >Login</button>
    </form>
</div>