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

should autoplot always return a ggplot-object? #123

Open
mb706 opened this issue Jul 2, 2023 · 0 comments
Open

should autoplot always return a ggplot-object? #123

mb706 opened this issue Jul 2, 2023 · 0 comments

Comments

@mb706
Copy link
Contributor

mb706 commented Jul 2, 2023

it appears that autoplot() for OptimInstanceSingleCrit with default args does not really return a ggplot-like object. One cannot do

autoplot(instance) + theme(legend.position = "none")

for example. Instead, a DelayedPatchworkPlot is returned, which causes patchwork::wrap_plots() to be called for plotting. We should probably try to avoid this if possible, since being able to modify autoplot()-plots post-hoc would be very useful.

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