-
Notifications
You must be signed in to change notification settings - Fork 0
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
Patchwork compatibility #2
Comments
Sorry, I think it's not possible to do this since anno_data <- sample(1:10, nrow(small_mat))
draw(ggheat(small_mat,
top_annotation = HeatmapAnnotation(
foo = gganno(
# Note: vector will be converted one-column data.frame
# with a column names `V1`
matrix = anno_data,
function(p) {
p + geom_point(aes(.x, V1))
}
), which = "column"
)
)) |
Maybe you can try jokergoo/ComplexHeatmap#261 and jokergoo/ComplexHeatmap#110 |
A library(eheat)
g <- ggplot(mpg, aes(displ, hwy, colour = class)) +
geom_point()
m <- matrix(rnorm(100), 10) ggheat(m,
top_annotation = HeatmapAnnotation(
ggplot = anno_gg(g, "panel",
height = unit(6, "cm"),
show_name = FALSE
)
)
) ggheat(m,
top_annotation = HeatmapAnnotation(
ggplot = anno_gg(g, "plot",
height = unit(6, "cm"),
show_name = FALSE
)
)
) |
Great, thank you!! |
Another function g <- ggplot(mpg, aes(displ, hwy, colour = class)) +
geom_point()
h <- ggheat(matrix(rnorm(100), 10))
g <- ggplot(mtcars) +
geom_point(aes(mpg, disp))
patchwork::wrap_elements(eheat_grob(h)) + g |
Close by daa6fd7 |
Is there a way to make heatmaps drawn with these objects compatible with patchwork? I tried below but got an error. Thank you
The text was updated successfully, but these errors were encountered: