drawProteins
drawProteins copied to clipboard
Control position of chain labels
Hi @brennanpincardiff,
I'm trying to plot a figure similar to Fig. 1A at https://academic.oup.com/view-large/figure/77823485/molbiolevolmss081f01_3c.jpeg.
How can I plot the chain labels on the top left of for each chain? Maybe it could also be useful to add additional labels (e.g. protein size) to add additional information.
Best, Jan
Good challenge, Jan. The short answer has to be... of course you can. Options include spacing out the chains and playing with the ggplot2::annotate() function. It kind of depends whether you are doing this as a one off illustration or whether you want to do lots of this and so it is worth developing a solution in R.
If you are only making a single figure, you could output your figure as a PDF and then add those extra details with a PDF editor or Adobe Illustrator.
Do you want help doing this with R, drawProteins and ggplot for a programming solution? Best wishes, Paul
I would like this as well.
Some functionality to control label behaviour would be awesome. I am dealing with a large protein, bold & angled labels (as ggtext package provides some) would increase readability without having to use larger space to draw the protein on.