Adds grid line specifications to the theme of an scplot object.

add_grid(object, ...)

Arguments

object

An scplot object (class scplot) returned from the scplot() function.

...

Line arguments (see element_line()).

Value

An object of class scplot (seescplot()) with modified theme element to include the specified grid line properties.

Details

The function allows customization of grid lines by passing arguments similar to those used in element_line(), such as color, size, and linetype.

See also

Examples

data(exampleAB, package = "scan")
p1 <- scplot(exampleAB$Anja)  |>
  set_theme("minimal")  |>
  add_grid(color = "grey70")