gglogo | R Documentation |
The gglogo()
function creates a grob
(a grid
graphical object) from
a logo file. This grob
can be combined with a ggplot2
plot object.
gglogo(
logo,
file = logo_file_path(logo),
x = 0.04,
y = 0.96,
just = c("left", "top"),
...
)
logo |
Name of a logo available in |
file |
Path to a |
x, y |
|
just |
The justification of the rectangle
relative to its (x, y) location. If there are two values, the first
value specifies horizontal justification and the second value specifies
vertical justification. Possible string values are: |
... |
Other arguments passed to |
Fill either logo
or file
parameter: an error is thrown if both
parameters are provided.
An object of class "grob".
library(grid)
header <- gglogo("marianne", x = 0, y = 1)
vp <- viewport(x = 0.22, y = 0.78, width = 0.2, height = 0.2, just = c("right",
"bottom"))
pushViewport(vp)
grid.draw(header)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.