R/get_noneInteractiveGrobs_index.R

Defines functions get_noneInteractiveGrobs_index

get_noneInteractiveGrobs_index <- function(loon.grobs) {

  n <- length(loon.grobs)
  id <- sapply(1:n,
               function(i){
                 loon.grob <- loon.grobs[[i]]
                 if(grepl(grid::grobName(loon.grob), pattern = "gTree")) NA else i
               }
  )
  id[which(!is.na(id))]
}

Try the loon.shiny package in your browser

Any scripts or data that you put into this service are public.

loon.shiny documentation built on Oct. 8, 2022, 5:05 p.m.