Entering edit mode
2.8 years ago
Kumar
▴
170
Hi Guys, I am looking to make a circos plot for my two csv files which includes the FST and TajimaD values at different BIN. please see the input files as an example. I am able to make a geom line plot at R but looking if I can make it in circos using R, please suggest any R script.
File 1:
METHOD BIN TajD
TajD 44600000 -1.03446
TajD 7470000 -0.912548
TajD 281630000 -0.901296
TajD 253400000 -0.884829
File 2:
METHOD BIN PI
PI 130005 0.000043
PI 700010 0.000365
PI 710010 0.000275
PI 1650010 0.0000576
Using the script to make geom_line plot::
ss_tajD <- read.table("population/sse.tajD", header=T)
ss_pi <- read.table("population/ss.pi", header=T)
ss.tajD<- ggplot(ss_tajD , aes(x=BIN, y=TajD, group=METHOD, color=METHOD)) +
geom_line(size = 0.5)+ scale_color_manual(values = c("darkred"))
ss.pi <- ggplot(ss_pi, aes(x=BIN, y=PI, group=METHOD, color=METHOD)) +
geom_line(size = 0.5)+ scale_color_manual(values = c("blue"))
figure <- ggarrange(ss.tajD, ss.pi,
ncol = 1, nrow = 3)
figure