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_c2c_cells can't handle passed ComplexHeatmap args #163

Open
rbutleriii opened this issue Jul 18, 2024 · 0 comments
Open

plot_c2c_cells can't handle passed ComplexHeatmap args #163

rbutleriii opened this issue Jul 18, 2024 · 0 comments

Comments

@rbutleriii
Copy link

When trying to pass arguments to ComplexHeatmap that already have defaults it doesn't override them but errors:

p4 <- as.ggplot(plot_c2c_cells(
  sce_list[['geno']], 
  factor_of_int = "Factor.6", 
  name = "Loadings \nProduct",
  cluster_rows = FALSE,
  cluster_columns = FALSE,
  column_title = FALSE, 
  row_title_side = 'bottom'
)) + ggtitle("PS19 effect Factor.6", subtitle = "(TgV vs. WtV)") +
  theme(
    plot.title = element_text(hjust = 0.6, size = 20),
    plot.subtitle = element_text(hjust = 0.6, size = 16)
  )
Error in ComplexHeatmap::Heatmap(., row_title = "Sender", row_names_side = "left",  : 
  formal argument "column_title" matched by multiple actual arguments

Same for row_title = FALSE. Also for values of NA, "", "something else", etc

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