Skip to content

ggbackground overrides annotation_custom #51

Description

@SeriyBg

I want to use annotation_custom to add the logo to the plot. However, when I'm using it together with the ggbackground, the background image seems to cover the logos:

plot <- ggbackground(plot, "background.png")
plot + 
  annotation_custom(rasterGrob(logo), xmin = 0, xmax = 0.3, ymin = 0.3, ymax = -1) +
  coord_cartesian(clip = "off")

The same code without ggbackground(plot, "background.png") generates the expected result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions