zktuong / ktplots

Some tools for plotting single-cell data
https://zktuong.github.io/ktplots/
MIT License
164 stars 32 forks source link

Changing legend scale and order of labels #71

Closed stalware closed 1 year ago

stalware commented 1 year ago

Hello, We have 2 datasets we have analyzed at different timepoints and want to compare the interactions using cellphonedb. I am interested in plotting these results as heatmap and was wondering if it is possible to change the scale for legends so that I have them compared to similar scale. Also, if there is a way to order the rows in specific order?

zktuong commented 1 year ago

Hi @stalware, for the first question, have you tried combine_cpdb first (if you scroll down a bit on the readme).

For the second Q, you can look at this issue for guidance on how to move the columns:

https://github.com/zktuong/ktplots/issues/18

For rows, you can try ordering g$data$Var1

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.