kevinblighe / EnhancedVolcano

Publication-ready volcano plots with enhanced colouring and labeling
399 stars 81 forks source link

Question - How is the number of labels plotted decided? #50

Closed northNomad closed 4 years ago

northNomad commented 4 years ago

As titled,

If the plot has, say, 1000 genes that meet the criteria to be labelled:

Which of the 1000 genes are labelled? I know that some genes are not labelled to avoid overplotting.

I am wondering how it is decided which genes are plotted and which are not.

Also, I can not yet find a way to label, lets say, top 20 genes with the highest LFC, is there a way to do that?

Thanks so much for reviewing and devlopment!

kevinblighe commented 4 years ago

Hey @northNomad , this is controlled internally via ggrepel. However, you can attempt to control which genes are labeled via the selectLabparameter. Usually, more labels can also be plot by setting drawConnectors == TRUE. One can also simply reduce the size of the labels (labSize), which will mean that more can be plot.

Please re-open this issue if this does not fully address the question.

Kind regards, Kevin