Plot the distribution of the statistics obtained from get.stats. Normal and chi-squared distributions are overlayed.

# S3 method for class 'stat.distribution'
plot(
  power4peaks.stats,
  obs.stat.color = "black",
  norm.fit.color = "firebrick",
  chi.fit.color = "navy",
  t.fit.color = "violet",
  f.fit.color = "forestgreen",
  df1 = NULL,
  df2 = NULL,
  adapt.y.axis = TRUE
)

Arguments

power4peaks.stats

An object of class power4peaks.stats.

obs.stat.color

Any R-supported color string indicating the color to use for the observed statistics distribution. Default: "black".

norm.fit.color

Any R-supported color string indicating the color to use for the normal distribution. Default: "firebrick".

chi.fit.color

Any R-supported color string indicating the color to use for the chi-squared distribution. Default: "navy".

t.fit.color

Any R-supported color string indicating the color to use for the t distribution. Default: "violet".

f.fit.color

Any R-supported color string indicating the color to use for the F distribution. Default: "forestgreen".

df1

Numeric value forcing the value for the degrees-of-freedom 1. Default: NULL (the value is obtained from the power4peaks.stats object.

df2

Numeric value forcing the value for the degrees-of-freedom 2. Default: NULL (the value is obtained from the power4peaks.stats object.

adapt.y.axis

Logical value indicating whether the Y-axis should be scaled to fit the observed distribution/ Default: TRUE.

Value

A ggplot object.