Skip to contents

Add corner logo

Usage

corner_logo(
  plot = ggplot2::last_plot(),
  logo = NULL,
  alpha = 1,
  position = "bottom-right",
  size = 1
)

Arguments

plot

..

logo

..

alpha

..

position

..

size

..

Value

gg.

Examples


library(ggProfessional)

ggplot(iris, aes(Sepal.Length, Petal.Width)) +
geom_point() -
corner_logo
#> Warning: no non-missing arguments to max; returning -Inf
#> Error in png::readPNG(paste0(logo_dir, "/", logo), FALSE, FALSE): unable to open /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/ggProfessional/logos/