When I use the command for PACF, lags 5, 10, 15, and 20 are labeled. I would like to label lag 1. I would greatly appreciate if someone could tell me how to do this. Below is the command that I am using: pacf(data$R1,main="Series R1 Residuals") [[alternative HTML version deleted]]
Hi Stephanie, Take a look at the "xaxt" argument under ?par as well as ?axis. Here is an example modified from ?pacf : acf(lh, xaxt = "n") axis(1, 0:16, 0:16, cex.axis = 0.8) HTH, Jorge On Fri, Sep 11, 2009 at 12:02 PM, Stephanie Cooke <cooke.stephanie@gmail.com> wrote:> When I use the command for PACF, lags 5, 10, 15, and 20 are labeled. I > would > like to label lag 1. I would greatly appreciate if someone could tell me > how > to do this. Below is the command that I am using: > > pacf(data$R1,main="Series R1 Residuals") > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
Try this: pacf(data$R1, main = "Series R1 Residuals", xaxt = 'n') axis(1, c(1, axTicks(1))) On Fri, Sep 11, 2009 at 1:02 PM, Stephanie Cooke <cooke.stephanie@gmail.com>wrote:> When I use the command for PACF, lags 5, 10, 15, and 20 are labeled. I > would > like to label lag 1. I would greatly appreciate if someone could tell me > how > to do this. Below is the command that I am using: > > pacf(data$R1,main="Series R1 Residuals") > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O [[alternative HTML version deleted]]