Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving error with ggsave for autoplot() similiar to #98 #226

Open
Max-Trouble opened this issue Jun 22, 2023 · 0 comments
Open

Saving error with ggsave for autoplot() similiar to #98 #226

Max-Trouble opened this issue Jun 22, 2023 · 0 comments

Comments

@Max-Trouble
Copy link

Max-Trouble commented Jun 22, 2023

Is it just me or is it not working again? I am using CRANs ggfortify version 0.4.16.
For the following code

library(ggplot2)
library(ggfortify)

# Create some example data
x <- 1:10
y <- c(2, 3, 4, 5, 6, 7, 8, 9, 10, 11)

# Fit the model
model <- lm(y ~ x)

autoplot(model, which = 1:4, label.size = 3) + theme_bw()
ggsave("model.png",width=22,height=15,units="cm",dpi=150)

it is just saving the last plot (Cook´s distance in my case) like in #98 (comment)

Originally posted by @Max-Trouble in #98 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant