ggpicrust2 icon indicating copy to clipboard operation
ggpicrust2 copied to clipboard

pathway_heatmap cannot reorder

Open gaimingle10 opened this issue 5 months ago • 1 comments

Dear Dr. Chen,

I want to reorder the pathway name by their classes belonging to. But it is not useful. Here is the code I used.

p1<-pathway_heatmap(
abundance = abundance %>%
right_join(
daa_annotated_sub_method_results_df02 %>% dplyr::select(feature, pathway_map),
by = c("function." = "feature")
) %>%
filter(function. %in% feature_with_p_0.05$feature) %>%
dplyr::select(-function.) %>%
column_to_rownames("pathway_map")%>%
dplyr::arrange(pathway_class), # I used dyplyr::arrange to order here metadata = map,
group = "Environment"
)

gaimingle10 avatar Feb 03 '24 13:02 gaimingle10