-
Notifications
You must be signed in to change notification settings - Fork 376
Open
Description
I need to do some work with ranges data, and naturally, I was re-reading the chapter on this. However, the plotting function no longer works:
> y = IRanges(c(1, 5, 5, 8), end = c(0, 6, 10, 10))
> plotIRanges(y)
Error: Don't know how to add o to a plot
This is a non-specific ggplot2 bug:
- https://stackoverflow.com/questions/43151619/r-error-dont-know-how-to-add-o-to-a-plot
- https://stackoverflow.com/questions/37886752/one-lined-legend-error-dont-know-how-to-add-o-to-a-plot
- https://stackoverflow.com/questions/40082222/scale-fill-brewererror-dont-know-how-to-add-o-to-a-plot
The bug happens due to name-spacing. The geom_rect functions also exist in the bioinformatics package ggbio, which I had loaded. To fix is easy, simple add ggplot2:: in front of the calls.
Metadata
Metadata
Assignees
Labels
No labels