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
Custom Visualizations #105
Comments
Hi @RMOsborn012, Most of liana's plots return ggplot/patchwork objects and these can be modified to other colours. Also, for ComplexHeatmap I allow kwargs to be passed so one can adjust the colour scheme. Either way, I'm happy to change the pallettes in a subsequent update. Feel free to suggest a colour-blind palette (e.g. cividis?). Hope this helps. |
@dbdimitrov I think the more complicated plots were giving me issues, and I couldn't directly change the colors and themes with typical For example, when using the
Resulting plot: Concerning the color palettes, Khroma is an excellent package for color palettes (https://packages.tesselle.org/khroma/). From the github: |
Hi @RMOsborn012, Yeah, I assume patchwork is making it too complicated. I will try to think how to enable palettes to be passed to the more complicated plots. Thanks for the feedback! Daniel |
First, I want to thank you all for making such a useful package and creating informative tutorials to use with other methods for cell-cell communication (NicheNet and Tensor cell2cell).
Unless I missed it, there isn't an option for changing the color scheme for many of the plot functions, and the default color scheme (ggplot2) is not colorblind-friendly.
I would like to change the colors to be consistent with other plots that I have created when analyzing my data (for presentations and manuscripts). I have already done this by changing the
cell_anno
parameter in theR/liana_plots.R
source code, but the changes inR/liana_tensor.R
took far longer than I care to admit. It would be great if there were an argument for defining custom color schemes in your plotting functions. I think this package is incredibly useful and look forward to any new updates.The text was updated successfully, but these errors were encountered: