You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get similar error message as in #137 when doing any polynomial regression.
Please see reproducible example:
library(ggfortify)
model <- lm(mpg ~ poly(hp, 2, raw = TRUE),data = mtcars)
autoplot(model)
Error: Each variable must be a 1d atomic vector or list.
Problem variables: 'poly(hp, 2, raw = TRUE)'
par(mfrow = c(2,2))
plot(model)
The text was updated successfully, but these errors were encountered:
No worries, you will have a look upon your return.
In the meantime I can still run the regression with formula = y ~ x + I(x²) as writing the regression like this works as expected.
The first thing I did is to use the github version, but unfortunately I experienced the same error.
@DasHammett thx for the report. the issue is caused by matrix contained in the explanatory values ( almost the same as #137). pls use the latest master.
Hi,
I get similar error message as in #137 when doing any polynomial regression.
Please see reproducible example:
The text was updated successfully, but these errors were encountered: