Re: [R] Help with another ggplot error

2019-06-13 Thread Bill Poling
y, June 13, 2019 10:38 AM To: Bill Poling Cc: r-help (r-help@r-project.org) Subject: Re: [R] Help with another ggplot error > Hello I have created a function called autocorrelate. > > When I run it with ggplot I get this error: > #Error in autocorrelate(., NetEditRev, lags = 0:nrow(.)) :

Re: [R] Help with another ggplot error

2019-06-13 Thread William Dunlap via R-help
> Hello I have created a function called autocorrelate. > > When I run it with ggplot I get this error: > #Error in autocorrelate(., NetEditRev, lags = 0:nrow(.)) : unused argument (lags = 0:nrow(.)) This means that autocorrelate does not have an argument called lags. E.g. > f <- function(x)