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

ggdendrogram opens a graphic device, even when plotting is not requested #36

Open
Queex opened this issue Jul 11, 2024 · 0 comments
Open

Comments

@Queex
Copy link

Queex commented Jul 11, 2024

I'm using the ggdendro package in automated report generation, invoking it as:

tmp <- ggdendro::ggdendrogram(hclust(dists))

for some distance matrix dists.

However, this always seems to open a new graphics device (at least under R 4.4.1 on Linux), which I then need to manually clean up by closing the device, and then deleting the Rplots.pdf file if running on a headless system.

The ggplot2::ggplot() function itself does not have this behaviour; I can assign in a similar way without a new graphics device opening.

If there's something in the documentation for ggdendrogram that will suppress opening a device, I can't find it.

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