gg_qq: Plot qq-plot of true data and bootstrapped null with ggplot

Description Usage Arguments Value Examples

View source: R/plot_funcs.R

Description

Plot qq-plot of true data and bootstrapped null with ggplot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
gg_qq(
  x,
  y,
  xlab = "F-statistics from sampled Null distr.",
  ylab = "observed F-statistics",
  alpha = 0.25,
  gg_theme = theme_classic(),
  offset = 1,
  plot_diagonal = TRUE
)

Arguments

x

vector containing values of values of first distribution to compare

y

vector containing values of values of secound distribution to compare

xlab

x-axis label

ylab

y-axis label

alpha

transparency paramenter between 0 and 1

gg_theme

ggplot theme, default is theme_classic()

offset

offset for x and y axis on top of maximal values

plot_diagonal

logical parameter indicating whether an identity line should be plotted

Value

A ggplot displaying the qq-plot of a true and a a bootstrapped null distribution

Examples

1
2

TPP2D documentation built on Nov. 8, 2020, 4:54 p.m.