add_logo: Add a logo into an image

Description Usage Arguments Value Examples

View source: R/add_logo.R

Description

Add a logo into an image

Usage

1
2
(plot_path, logo_path, logo_position = c("top right", "top left",
  "bottom right", "bottom left"), logo_scale = 10)

Arguments

plot_path

image path.

logo_path

logo image path.

logo_position

the position of logo within the image.

logo_scale

the size of logo relative to the image.

Value

Image.

Examples

1
2
3
4
5
6
(
    plot_path = system.file("extdata", "logo.png", package = "add2ggplot"),
    logo_path = system.file("extdata", "jiaxiang.png", package = "add2ggplot"),
    logo_position = "bottom right",
    logo_scale = 5
)

Example output

# A tibble: 1 x 7
  format width height colorspace matte filesize density
  <chr>  <int>  <int> <chr>      <lgl>    <int> <chr>  
1 PNG     1112    472 sRGB       TRUE         0 57x57  

add2ggplot documentation built on Feb. 7, 2020, 5:09 p.m.