Learn R Programming

quasar (version 0.1.0)

plot.quasar: Plot method for quasar objects

Description

Produces a plot of a quasar object, typically returned by the closedTesting function. It shows the estimated coefficients by quantile level, highlighting statistically significant coefficients based on adjusted p-values.

Usage

# S3 method for quasar
plot(
  x,
  alpha = 0.05,
  legend.position = "topright",
  main = NULL,
  xlab = "Quantile level",
  ylab = "Coefficient",
  col.line = "darkgrey",
  col.sig = "darkred",
  col.nonsig = "darkgrey",
  pch.sig = 19,
  pch.nonsig = 17,
  show.legend = TRUE,
  ...
)

Value

A base R plot.

Arguments

x

An object of class quasar.

alpha

Significance level.

legend.position

Position of the legend.

main

Main plot title.

xlab

Label for the x-axis.

ylab

Label for the y-axis.

col.line

Color of the connecting line.

col.sig

Color for significant points.

col.nonsig

Color for non-significant points.

pch.sig

Point character for significant points.

pch.nonsig

Point character for non-significant points.

show.legend

Logical; whether to display a legend.

...

Additional graphical parameters passed to plot().

Author

Anna Vesely

See Also

closedTesting