gg.sline: wrapper around geom_point and geom_smooth

gg.slineR Documentation

wrapper around geom_point and geom_smooth

Description

a wrapper around geom_smooth to fit dot plot with lm line

Usage

gg.sline(
  x,
  y,
  group = "x",
  colour = NULL,
  smethod = "lm",
  dens_type = c("point", "hex"),
  facet1 = NULL,
  facet2 = NULL,
  transpose = FALSE,
  facet_scales = "fixed",
  line = TRUE,
  formula = y ~ x,
  print = FALSE,
  hex_par = list(bins = 50),
  wes = NULL,
  cex.scatter = 0.1
)

Arguments

x

numeric values

y

numeric values

group

vector parallel to x and y that specifies grouping

colour

vector that specifies colouring of points

Value

A ggplot object


kevinmhadi/khtools documentation built on Jan. 16, 2025, 4:18 p.m.