ggdiagram | R Documentation |
This is a convenient way to specify geom defaults
ggdiagram(
font_family = "sans",
font_size = 11,
linewidth = 0.5,
point_size = 1.5,
rect_linewidth = linewidth,
theme_function = ggplot2::theme_void,
...
)
font_family |
font family |
font_size |
font size in points |
linewidth |
line width |
point_size |
point size |
rect_linewidth |
line width of rectangles |
theme_function |
A complete ggplot2 theme function (e.g., ggplot2::theme_minimal). Defaults to ggplot2::theme_void |
... |
< |
ggplot function
ggdiagram(font_size = 20, font_family = "serif", linewidth = 3) +
ob_circle(label = "Circle") +
ob_rectangle(label = "Rectangle", x = 3, width = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.