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

LargeheatmapList with as.ggplot() #16

Open
jakob-arnold opened this issue May 9, 2024 · 3 comments
Open

LargeheatmapList with as.ggplot() #16

jakob-arnold opened this issue May 9, 2024 · 3 comments

Comments

@jakob-arnold
Copy link

Hi,

I'm trying to convert a clustered Dotplot, which I created with the Clustered_DotPlot() function from the scCustomize library, into a ggplot object. However, when I try to run

as.ggplot(p1)

I get the error:

Error in UseMethod("as.grob") : no applicable method for 'as.grob' applied to an object of class "c('HeatmapList', 'AdditiveUnit')"

Am I doing something wrong or is there a good way of doing this?

Many thanks
Jakob

@GuangchuangYu
Copy link
Owner

not compatible.

@jakob-arnold
Copy link
Author

Alright, that's too bad. And there is now way to do that manually?

@jakob-arnold
Copy link
Author

Im just asking, because in the package documentation it says:
With this package, we are able to e.g. using 'cowplot' to align plots produced by 'base' graphics, 'ComplexHeatmap', 'eulerr', 'grid', 'lattice', 'magick', 'pheatmap', 'vcd' etc. by converting them to 'ggplot' objects.

So I thought, a heatmap created with the ComplexHeatmap package may also be compatible with ggplotify.

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