normalQuantilePlot: creates a ggplot object showing a normal quantile plot

View source: R/generalStat.R

normalQuantilePlotR Documentation

creates a ggplot object showing a normal quantile plot

Description

creates a ggplot object showing a normal quantile plot

Usage

normalQuantilePlot(
  data,
  column,
  removeNA = TRUE,
  sampleSize = NA,
  pointColor = "black",
  pointFill = "green",
  pointShape = 21,
  pointSize = 3,
  pointAlpha = 0.75,
  lineColor = "red",
  lineType = "dotted",
  lineWidth = 1,
  lineAlpha = 1,
  title = NULL,
  xAxis = TRUE,
  yAxis = TRUE,
  vertical = FALSE,
  xDefault = FALSE,
  xLimits = c(0, NA),
  yDefault = TRUE,
  yLimits = c(0, NA),
  ...
)

Arguments

data

the data to be plotted, can be a numeric/character/etc vector or data.frame like (or tibble etc). If it is data.frame or similar the column argument defines which column is to be used

column

defines which columns are to be used for the plot. Can be integer or character (column name)

removeNA

if TRUE, the NA 'values' in the vector will be removed prior to plotting. Note: this will remove warning messages and errors

sampleSize

allows to the use of a sample of the data to be used for the boxplot. By default sampleSize = NA, in which case all data is used

pointColor

defines the color of the border of the data points

pointFill

defines the color of the data points themselves

pointShape

shape of the data points

pointSize

size of the data points

pointAlpha

alpha ('see through' value) of the data points

lineColor

color of the normal distribution 'line'

lineType

type of the normal distribution 'line'

lineWidth

width of the normal distribution 'line'

lineAlpha

alpha ('see through' value) of the normal distribution 'line'

title

sets title of graph

xAxis

defines if the x-axis is shown

yAxis

defines if the x-axis is shown

vertical

if TRUE, flips x- and y-axis

xDefault

default is set to TRUE, together with xLimits, this can be used to define the exact range of the X-axis

xLimits

default = c(0,NA), together with xDefault, this can be used to define the exact range of the Y-axis

yDefault

default is set to TRUE, together with yLimits, this can be used to define the exact range of the Y-axis

yLimits

default = c(0,NA), together with yDefault, this can be used to define the exact range of the Y-axis

...

can be used to pass on other arguments to graphAdjust() (like xLimits, xExpand, etc)

Value

a ggplot object


BenBruyneel/BBPersonalR documentation built on Aug. 23, 2024, 8:28 p.m.