Description Usage Arguments Value Examples
'dren_scatter()' Generate an example of what is in the package
1 2 3 4 5 6 7 8 9 10 11 | dren_scatter(
title = "My Scatter",
x_title = "MPG",
y_title = "WT",
font = "serif",
font_size = 16,
point_size = 1,
add_lm = TRUE,
lm_colour = "black",
lm_size = 2
)
|
title |
The main title for the plot |
x_title |
The main label for X axis |
y_title |
The main label for Y axis |
font |
The preferred font |
font_size |
The font size |
point_size |
The point size |
add_lm |
Add a best fit line |
lm_colour |
Color of regression line |
lm_size |
Size of regression line |
Returns an example plot which uses the package
1 2 3 4 | if (interactive()) {
ggplot(mtcars, aes(x = mpg, y = wt)) +
dren_scatter()
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.