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
)
An object of class power4peaks.stats
.
Any R-supported color string indicating the color to use for the observed statistics distribution. Default: "black"
.
Any R-supported color string indicating the color to use for the normal distribution. Default: "firebrick"
.
Any R-supported color string indicating the color to use for the chi-squared distribution. Default: "navy"
.
Any R-supported color string indicating the color to use for the t distribution. Default: "violet"
.
Any R-supported color string indicating the color to use for the F distribution. Default: "forestgreen"
.
Numeric value forcing the value for the degrees-of-freedom 1. Default: NULL
(the value is obtained from the power4peaks.stats
object.
Numeric value forcing the value for the degrees-of-freedom 2. Default: NULL
(the value is obtained from the power4peaks.stats
object.
Logical value indicating whether the Y-axis should be scaled to fit the observed distribution/ Default: TRUE
.
A ggplot object.