dren_scatter: Generate a scatter plot

Description Usage Arguments Value Examples

View source: R/scatter.R

Description

'dren_scatter()' Generate an example of what is in the package

Usage

 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
)

Arguments

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

Value

Returns an example plot which uses the package

Examples

1
2
3
4
if (interactive()) {
  ggplot(mtcars, aes(x = mpg, y = wt)) +
    dren_scatter()
}

fdrennan/drenplot documentation built on Sept. 18, 2020, 12:55 p.m.