ggregression: Quick plot + contrast hypothesis test to compare two...

Description Usage Arguments Value See Also Examples

View source: R/ggregression.R

Description

Quick plot + contrast hypothesis test to compare two populations

Usage

1
2
3
ggregression(x, y, color = "black", xlab = deparse(substitute(x)),
  ylab = deparse(substitute(y)), doregression = T, doloess = F,
  span = if (doloess == T) {     c(0.5, 1, 1.5, 2) }, ...)

Arguments

numeric1

a numeric vector of group 1

numeric2

a numeric vector of group 2

method

string, either t.student (parametric) or wilcox.test (nonparametric)

title

string with the name of the plot

wantpoints

Logical FALSE/TRUE to determine whether points will be overplotted

wantviolin

Logical FALSE/TRUE to determine whether you want a violine plot in the background

The

colors of the two groups. Default c("darkorchid4","aquamarine4")

Value

Prints a plot with the given test p-value. If title is provided, it prints into a pdf.

See Also

ggdotscolor

Examples

1
2
3
4
x=rnomr(1,1,100)
y=rnorm(1,2,100)
x=rnorm(1,3,100)
ggdotscolor(x=x,y=y,colorvar=z) %>% addggregression()

MoisesExpositoAlonso/moiR documentation built on Dec. 24, 2021, 10:12 p.m.