Im trying to make a circular plot similar to gene expression plots. I found the circlize package in R could do this, and Im trying to follow this http://cran.r-project.org/web/packages/circlize/vignettes/genomic_plot.pdf
I manage to get to: 6. Create plotting regions
But when I type
circos.genomicPoints(Region, value, numeric.column = c(1,2))
I get this error:
Error in get.cell.meta.data("sector.index") :
Length of `sector.index` should only be 1.
And when I type
circos.genomicLines(Region, value, numeric.column = c(1, 2))
I get this error:
Error in region[[1]] + region[[2]] :
non-numeric argument to binary operator
Region is a data frame with 205 observations and 7 variables: chromosome, start position, end position, and then some values value is a data frame with 205 observations and 2 variables: both numeric values
Im completely new to this kind of plot, so any help is appreciated
Thanks