This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Plot chromossomes in R

Hello guys

could someone tell me a way to build charts in R using the coordinates of the chromosomes of the species of interest to me?

For example:

Chromosome size (bp)

1 225639

2 185475

3 306582

.

.

Thanks

r plot

2 answers

You could try:

df = data.fram (chromosome = c(1:22), size_bp = c( 225639, ....))
ggplot(data = df, aes(x = chromosome, weight = size_bp)) + geom_bar()

hth

did you try chromplot? there are multiple packages in R (including circos) for plotting chromosomes in R/bioc.

Log in to answer this question.