Skip to content

plotIRanges: Don't know how to add o to a plot #7

@Deleetdk

Description

@Deleetdk

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:

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions