pafr icon indicating copy to clipboard operation
pafr copied to clipboard

set size of sequence labels in dotplot()

Open fraca opened this issue 4 years ago • 3 comments

Hi David, How can I set the size of label_seqs in the dotplot()?

Best,

Marco

fraca avatar Feb 23 '21 15:02 fraca

Hi @fraca, in the current version of the package this is not actually possible (there are so many things that could be tweaked, we tried not to overload the number of arguments in the functions, but that means some fo the variables are not included).

I just pushed a very quick fix to alow this for now, you can install a new version of pafr with this using devtools:

library(devtools)
install_github("dwinter/pafr", ref="feature-label-seqs")

Then you can use the new label_size argument to mess with the size of the labels.

Hope that's a help, I'l keep this issue open until there is a complete fixe in the 'main' repo.

dwinter avatar Feb 23 '21 21:02 dwinter

Many thanks David, I changed also vjust=0 of the query labels. So the labels are above the x axis and I can play better with the size.

fraca avatar Feb 24 '21 10:02 fraca

This didn't work for me. I also tried altering with ggplot by doing: dotplot(gilva,label_seqs = TRUE) + theme(text = element_text(size = 10))

No luck.

mestato avatar Aug 29 '23 20:08 mestato