Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with colors in circlize #374

Open
hellebaa opened this issue May 24, 2023 · 0 comments
Open

Problems with colors in circlize #374

hellebaa opened this issue May 24, 2023 · 0 comments

Comments

@hellebaa
Copy link

I have managed to make a plot, but when I try to make the colors conditional I get the following error. Any advice?

Error: The length of col (309) should be equal to 1 or the number of your
data column (2).

code:
circos.par(gap.degree = c(rep(1,22),20)) circos.genomicInitialize(cod_chromInfo) circos.genomicTrackPlotRegion(densDUP, ylim = c(1, max(densDUP$DUP_count)), panel.fun = function(region, value, ...) { circos.genomicPoints(region, value, col = ifelse(value[[1]] < 22, "#FFD92F", "#377EB8"), cex = 0.5, pch = 16) }) circos.yaxis(side = "right", at = seq(0, 750, by = 100))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant