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

Remove background in FeaturePlot #1948

Closed
ogarmar3 opened this issue Aug 7, 2019 · 4 comments
Closed

Remove background in FeaturePlot #1948

ogarmar3 opened this issue Aug 7, 2019 · 4 comments

Comments

@ogarmar3
Copy link

ogarmar3 commented Aug 7, 2019

Hello,

I'm plotting gene expression on tSNE using FeaturePlot, Seurat v.2.3.3.
How can I remove the grey background grid?

Gene_tSNE_test2

I need just plain white background, but I can't find a way to do it.

Thank you!

Marcos

@j-andrews7
Copy link

Seurat plots are just ggplot2 plots. You can adjust the theming as needed, for example:

yourplot = FeaturePlot(...) + ggplot2::theme_classic()

@mojaveazure
Copy link
Member

Hi Marcos,

If you pass do.return = TRUE, you can get the ggplot2 object returned to you. This allows you to manipulate the plot using standard ggplot2 functions. In your case, I suggest looking at the theme function

@ogarmar3
Copy link
Author

ogarmar3 commented Aug 7, 2019

It works. I'm learning about ggplot2 now.

Thank you!

@yingyonghui
Copy link

It works. I'm learning about ggplot2 now.

Thank you!

Hi @ogarmar3,
I'm wondering how you solved the problem.
I just came up with the same question.
I tried FeaturePlot(...) + ggplot2::theme_classic(), but it returned 'NULL' and the figure showed no changes.
Any suggestions would be appreciated!

Many thanks!
Best,
Yingyong

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

4 participants