As I was walking through some of the examples in the ggbio vignette, I quickly realized that I was unable to generate any of the example plots, and kept receiving the exact same error. For example, running:
set.seed(1)
N <- 100
gr <- GRanges(seqnames = sample(c("chr1", "chr2", "chr3"), size = N, replace = TRUE),
IRanges(start = sample(1:300, size = N, replace = TRUE), width = sample(70:75,
size = N, replace = TRUE)), strand = sample(c("+", "-", "*"), size = N,
replace = TRUE), value = rnorm(N, 10, 3), score = rnorm(N, 100, 30),
sample = sample(c("Normal", "Tumor"), size = N, replace = TRUE), pair = sample(letters,
size = N, replace = TRUE))
ggplot(gr) + geom_rect()
produces this:
Error in as(slotVal, slotClass, strict = FALSE) :
no method or default for coercing "gg" to "ggORNULL"
This error appeared regardless of what sort of plot I tried to generate. I tried interpreting the traceback, but I couldn't figure it out:
Hi,
As I was walking through some of the examples in the ggbio vignette, I quickly realized that I was unable to generate any of the example plots, and kept receiving the exact same error. For example, running:
produces this:
This error appeared regardless of what sort of plot I tried to generate. I tried interpreting the traceback, but I couldn't figure it out:
I'm using ggplot version 2.2.1 and ggbio version 1.22.4. Thank you for your help!