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

plot() outputs require white background (or white lines?) for dark mode website #21

Open
avallecam opened this issue Jul 23, 2024 · 8 comments

Comments

@avallecam
Copy link
Member

currently, the plot() outputs are lost in the background. possibly the standard suggested action item would be to try to keep the default white background.
image

@Bisaloo
Copy link
Member

Bisaloo commented Jul 23, 2024

Can you share the link to the page where you are observing this please?

@avallecam
Copy link
Member Author

Can you share the link to the page where you are observing this please?

yes, here it is https://epiverse-trace.github.io/epiparameter/articles/data_from_epireview.html

@Bisaloo
Copy link
Member

Bisaloo commented Jul 23, 2024

I see the same behaviour in pkgdown: https://pkgdown.r-lib.org/articles/test/rendering.html

Could you please open a new issue there (after checking if it hasn't been reported already)? I'm curious to see if they consider it's a bug / something that needs to be changed upstream or if they prefer leave it to end users.

@avallecam
Copy link
Member Author

Could you please open a new issue there (after checking if it hasn't been reported already)?

sure!

@avallecam
Copy link
Member Author

now reported in r-lib/pkgdown#2729

@Bisaloo
Copy link
Member

Bisaloo commented Jul 24, 2024

Note to self: only base plots are affected, not ggplot plots.

@avallecam
Copy link
Member Author

I'm curious to see if they consider it's a bug / something that needs to be changed upstream or if they prefer leave it to end users.

they prefer to leave this to end users using par(bg = 'white').

So, should we add this parameter to all vignettes expecting that it may generate base R plots? This would give it an output similar to ggplot2 visualizations

(screenshot from PR preview adding this to the testing vignette)
image

@avallecam
Copy link
Member Author

update: maybe we can wait until the discussion on their side gets to a conclusion to plan a next step.

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

2 participants