Plot chromossomes in R
2
0
Entering edit mode
7.6 years ago
ricardo ▴ 40

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 • 1.6k views
ADD COMMENT
1
Entering edit mode
7.6 years ago
H.Hasani ▴ 990

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

ADD COMMENT
1
Entering edit mode
7.6 years ago
ssv.bio ▴ 200

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

ADD COMMENT

Login before adding your answer.

Traffic: 2498 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6