Description Usage Arguments Value Examples
Perform an analysis of parallel moderated mediations according to an extension of Edwards and Lambert (2007) to allow multiple methods.
1 2 3 | graph_theme(base_size = 11, base_family = "",
legend.position = "bottom", legend.box = NULL, axis = TRUE,
base_line_size = base_size/22, base_rect_size = base_size/22)
|
base_size |
Numeric. Adjust size parameters. |
base_family |
Character. Font. |
legend.position |
Character. "none", "bottom", "top", or vector of coordinates. |
legend.box |
Character. "horizontal" or "vertical". |
axis |
Logical. Whether axis should be dranw on the side. |
base_line_size |
Numeric. Adjust size parameters. |
base_rect_size |
Numeric. Adjust size parameters. |
A formated graph.
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(ggplot2)
library(dplyr)
library(writer)
g <- iris %>%
mutate_if(is.numeric, scale) %>%
ggplot(aes(x = Sepal.Length, y = Petal.Length, color = Species)) +
geom_point() +
geom_smooth(method = "lm") +
scale_colour_grey() +
scale_x_continuous(breaks = seq(-2, 10, 0.5)) + xlab("Setal") +
scale_y_continuous(breaks = seq(-2, 10, 0.5)) + ylab("Pepal") +
graph_theme(axis = FALSE, legend.position = "bottom")
graph_place_axis(g, x = 0, y = 0, xunit = 0.5, yunit = 0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.