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

Issue with drawConnectors #132

Open
SuhasSrinivasan opened this issue Jun 2, 2024 · 0 comments
Open

Issue with drawConnectors #132

SuhasSrinivasan opened this issue Jun 2, 2024 · 0 comments

Comments

@SuhasSrinivasan
Copy link

Hi,

Thank you for developing and maintaining this useful package!

When following the vignette, there is an issue when using drawConnectors = TRUE

> EnhancedVolcano(res_df, lab = res_df$gene, FCcutoff = 0.5, pCutoff = 10e-1,
+                 x = 'log2FoldChange', y = 'pvalue', title = '', subtitle = '', labSize = 3,
+                 drawConnectors = T, widthConnectors = 0.5)

Error in grid.Call(C_convert, x, as.integer(whatfrom), as.integer(whatto),  : 
  Viewport has zero dimension(s)

> traceback()
23: grid.Call(C_convert, x, as.integer(whatfrom), as.integer(whatto), 
        valid.units(unitTo))
22: convertUnit(x, unitTo, "y", "dimension", "y", "dimension", valueOnly = valueOnly)
21: convertHeight(x$box.padding, "native", valueOnly = TRUE)
20: makeContent.textrepeltree(x)
19: makeContent(x)
18: drawGTree(x)
17: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
16: grid.draw.gTree(x$children[[i]], recording = FALSE)
15: grid.draw(x$children[[i]], recording = FALSE)
14: drawGTree(x)
13: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
12: grid.draw.gTree(x$children[[i]], recording = FALSE)
11: grid.draw(x$children[[i]], recording = FALSE)
10: drawGTree(x)
9: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
8: grid.draw.gTree(x$children[[i]], recording = FALSE)
7: grid.draw(x$children[[i]], recording = FALSE)
6: drawGTree(x)
5: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
4: grid.draw.gTree(gtable)
3: grid.draw(gtable)
2: print.ggplot(x)
1: (function (x, ...) 
   UseMethod("print"))(x)
R version 4.3.2 (2023-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.4 LTS
EnhancedVolcano_1.20.0  
ggplot2_3.5.0
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