-
Notifications
You must be signed in to change notification settings - Fork 10
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
split.by variable independent from colour variable #4
Comments
Hi @Dario-Rocha, Thanks for using the package! I am happy you find it useful and you like it! Regarding your request, I recently received an email with the exact same issue. As of now, the use of I will update this thread once the package is updated on CRAN! Thanks a lot for the ideas! Best, |
Hi @Dario-Rocha, Thanks for giving it a go! Indeed, I was also following a similar approach and also faced the NA issue. I was able to solve it by:
I have tested this new implementation and it should not break. However, it would be nice if you could also give it a go in your dataset and tell me how it looks! For this, please install: devtools::install_github("enblacar/SCpubr", ref = "59895b45ff3b412d7e467a12146acec73c797c81") And run: SCpubr::do_DimPlot(sample = sample, group.by = "seurat_clusters", split.by = "orig.ident") Or use the variables of your choice. Other parameters such as In this commit, I also added the For For Finally, please remember that you are downloading a developmental version of the package. Treat it as if anything could break any moment. Once you have your desired plot, please install back the CRAN version and wait for the official update to be released! Looking forward for your feedback! |
Hi @Dario-Rocha, I am closing this issue as I believe all the necessary changes have been implemented in SCpubr v1.0.2. Please update the package from Thanks for your feedback! |
The package is amazing, but I can't find a way to split plots by a desired categorical variable different than the categorical variable that is used to colour the plot in do_DimPlot, do_RidgePlot and do_ViolinPlot. I also am unable to split the do_NebulosaPlot plot by a categorical variable.
For do_DimPlot, I am trying to colour cells by cluster and separate the plot in two by sample. For example, in base seurat the resulting plot from
When trying to do the same with do_DimPlot
returns
Error: Either group.by or split.by has to be NULL.
do_FeaturePlot, instead, allows the colouring variable to be different from the splitting variable, although the colouring variable can't be categorical.
In a similar fashion, for ridge and violin plots, I'd like to include two categorical variables. For a basic seurat violin plot, this can be achieved with
but I am unable to find a wat to do it with SCPubr
Hopefully there is a way to do this because I am in love with this package aesthetics
The text was updated successfully, but these errors were encountered: