Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions R/utilities-background.R
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ addWatermark <- function(plotObject,

watermark <- createWatermarkGrob(label = watermark, alpha = alpha)

plotObject <- plotObject + ggplot2::annotation_custom(grob = watermark, xmin = -Inf, ymin = -Inf, xmax = Inf, ymax = Inf)
plotObject <- plotObject + ggplot2::annotation_custom(grob = watermark, xmin = I(-Inf), ymin = I(-Inf), xmax = I(Inf), ymax = I(Inf))

return(plotObject)
}
Expand Down Expand Up @@ -345,7 +345,7 @@ setWatermark <- function(plotObject,
watermark = watermarkConfiguration,
alpha = alpha
)
newPlotObject$layers[[1]] <- dummyPlot$layer[[1]]
newPlotObject$layers[[1]] <- dummyPlot$layers[[1]]
return(newPlotObject)
}

Expand Down
Loading