Home > Community > FeaturePlot from Seurat: change its title
Upvote

26

Downvote
+ R
+ Bioinformatics
Posted by
Mr D

FeaturePlot from Seurat: change its title

David Bhattarai  Follow

I tried with some data that I have and this is working for me:

p <- FeaturePlot(object = seurat_object, features.plot = id, cols.use = c("grey", "blue"),                      reduction.use = "tsne", do.return = TRUE)lapply(p, function(x){x + labs(title = endothelial_symbols[1])})

I think it is because FeaturePlot returns several ggplot objects according to the ids you put. This is returned as a list of plots so you have to iterate each one for labeling.

More

Upvote

VOTE

Downvote
Jon Collier  Follow
This can be “simplified” to More
Upvote

VOTE

Downvote
John Voelker  Follow
lapply(p, `+`, labs(title = endothelial_symbols[1]))More
Upvote

VOTE

Downvote