We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
get_image_path currently lacks a logic branch for an input which is not a ggplot or a string
get_image_path
ggplot
ntfy/R/ntfy.R
Lines 17 to 28 in 125a3bf
so a grob produces an uninformative error. A default case should be added, but specific support for grob would also be good, see also #18.
grob
An example grob for testing would be
library(grid) rect_grob <- rectGrob( x = 0.5, y = 0.5, width = 0.3, height = 0.3, gp = gpar(fill = "lightblue", col = "navy") ) circle_grob <- circleGrob( x = 0.5, y = 0.5, r = 0.15, gp = gpar(fill = "pink", col = "red") ) text_grob <- textGrob( "Hello Grid!", x = 0.5, y = 0.8, gp = gpar(fontsize = 16, fontface = "bold") ) # Combine all grobs into a single grob object my_grob <- gTree(children = gList(rect_grob, circle_grob, text_grob)) grid.newpage() grid.draw(my_grob) class(my_grob) # [1] "gTree" "grob" "gDesc"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
get_image_path
currently lacks a logic branch for an input which is not aggplot
or a stringntfy/R/ntfy.R
Lines 17 to 28 in 125a3bf
so a
grob
produces an uninformative error. A default case should be added, but specific support forgrob
would also be good, see also #18.An example
grob
for testing would beThe text was updated successfully, but these errors were encountered: