-
Notifications
You must be signed in to change notification settings - Fork 13
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
Error: polygon edge not found #45
Comments
I'm a little surprised by the root cause you identified since we've regularly plotted data with such axis names and not had any issues. That said we have seen this error pop up sporadically. If you have a reproducible example that you could post, that would be extremely helpful for us to finally get this dealt with. Thanks for the report. |
It might not be the cause - that just seems to be the predominant reason that I've found when searching online and seemed to make sense in my case. The other frequent comment I see is that there's an issue with font compatibility. Here's the code: xml<-list.files(pattern="wsp",full=T,recursive=TRUE) In my case the error is reproducible, it happens every single time. |
When I don't use the inverse trans functions, I don't have any issues seeing the plots I want. |
Sorry just caught a slight error in my code, the ggcyto plot should be:
Accidentally took out the geom_hex when pasting it here. Everything else I reported still holds true |
Without the data (wsp and example FCS), we can't tell exactly where went wrong. Do you think see any warnings from |
You can zip you wsp and attach it here |
I am able to plot it without the issue (using BioC devel). Let me switch to the current BioC release to doublecheck. |
I've verified it works on the latest BioC release (only show the first 4 samples here, but it also plots with all 54 files) library(flowWorkspace)
ws <- openWorkspace("Chagas.wsp")
gs <- parseWorkspace(ws, name = 1)
library(ggcyto)
ggcyto(gs[1:4], aes(x = "Comp-PerCP-A", y = "Comp-APC-Cy7-A"), subset = "CD3+") + geom_hex(bins=64) + axis_x_inverse_trans() + axis_y_inverse_trans() > sessionInfo()
R version 3.5.3 (2019-03-11)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 9 (stretch)
other attached packages:
[1] ggcyto_1.10.2 flowWorkspace_3.30.2
[3] ncdfFlow_2.28.1 BH_1.69.0-1
[5] RcppArmadillo_0.9.300.2.0 flowCore_1.48.1
[7] ggplot2_3.1.0 BiocManager_1.30.4
loaded via a namespace (and not attached):
[1] pcaPP_1.9-73 Rcpp_1.0.1 RColorBrewer_1.1-2
[4] pillar_1.3.1 compiler_3.5.3 DEoptimR_1.0-8
[7] plyr_1.8.4 zlibbioc_1.28.0 tools_3.5.3
[10] tibble_2.1.1 gtable_0.3.0 lattice_0.20-38
[13] pkgconfig_2.0.2 rlang_0.3.3 graph_1.60.0
[16] Rgraphviz_2.26.0 parallel_3.5.3 mvtnorm_1.0-10
[19] hexbin_1.27.2 gridExtra_2.3 stringr_1.4.0
[22] withr_2.1.2 dplyr_0.8.0.1 cluster_2.0.7-1
[25] IDPmisc_1.1.19 stats4_3.5.3 grid_3.5.3
[28] tidyselect_0.2.5 data.table_1.12.0 glue_1.3.1
[31] robustbase_0.93-4 Biobase_2.42.0 R6_2.4.0
[34] rrcov_1.4-7 XML_3.98-1.19 latticeExtra_0.6-28
[37] purrr_0.3.2 corpcor_1.6.9 magrittr_1.5
[40] scales_1.0.0 matrixStats_0.54.0 BiocGenerics_0.28.0
[43] MASS_7.3-51.3 assertthat_0.2.1 colorspace_1.4-1
[46] KernSmooth_2.23-15 stringi_1.4.3 flowViz_1.46.1
[49] lazyeval_0.2.2 munsell_0.5.0 crayon_1.3.4 Please check your relevant package version and update them as needed. |
I'll do this and get back to you, thanks. |
Still not working for me:
Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
I think it's an RStudio issue. I just tried to do it in R (not RStudio) and it worked. |
Also, when I open quartz() in RStudio prior to running the ggcyto plot, it also works. |
Hi all,
When trying to plot a dotplot from my GatingSet using ggcyto, I'm unable to do so after applying +axis_x_inverse_trans() because the following error consistently occurs:
Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
polygon edge not found
I've done extensive searching on this and the issue stems from my x-axis and y-axis names having dashes, e.g. "Comp-PerCP-Cy7-A". The program really doesn't like that.
I can't figure out how to change the dashes to "_" or "." I've tried using gsub and changing the names of the columns, but then that completely messes up the gating scheme of my gating set.
Any advice?
The text was updated successfully, but these errors were encountered: