This is a test version of Biostars. For the public version, visit https://www.biostars.org.
R: How can I change the aspect ratio of letters in a plot?

I want to plot letters, but I want to be able to plot e.g. a tall 'A' and a short 'A' both with the exact same width, but with different heights. In other words: How do I control the aspect ratio of letters in a plot?

r

Hello leon.jessen!

We believe that this post does not fit the main topic of this site.

Not a bioinformatics question

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

I want to create a custom sequence logo and the core of this challenge is stated in the question.

1 answer

Take a look at the source code to seqLogo, which is now part of bioconductor, I think. It draws a sequence logo from polygon calls, where each residue is a polygon drawn at a particular origin with a particular height and width. The aspect ratio is controlled by specifying the desired height and width.

Log in to answer this question.