add_logo {add2ggplot}R Documentation

Add a logo into an image

Description

Add a logo into an image

Usage

add_logo(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

add_logo(
    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
)

[Package add2ggplot version 0.3.0 Index]