search for: grobtree

Displaying 2 results from an estimated 2 matches for "grobtree".

Did you mean: globfree
2007 Dec 13
1
ggplot2: can not find "current.grobTree()"
Dear All (and Hadley), Is the function "current.grobTree()" implemented in ggplot2? According to the draft ggplot2 book, on page 43, we can get a list of all grobs with current.grobTree(). But when I try that, I get 'Error: could not find function "current.grobTree"'. However, when I try help(current.grobTree), I do get a "fa...
2018 Mar 07
0
ggplot2: plot gruped/nested split violins
...w(quantiles)), setdiff(names(data), c("x", "y")), drop = FALSE] aesthetics$alpha <- rep(1, nrow(quantiles)) both <- cbind(quantiles, aesthetics) quantile_grob <- GeomPath$draw_panel(both, ...) ggplot2:::ggname("geom_split_violin", grid::grobTree(GeomPolygon$draw_panel(newdata, ...), quantile_grob)) } else { ggplot2:::ggname("geom_split_violin", GeomPolygon$draw_panel(newdata, ...)) } }) create_quantile_segment_frame <- function (data, draw_quantiles, split = FALSE, grp = NULL) { dens <- cumsum(data$de...