phiPlot: Plot of phi versus y and boxplot of y

View source: R/phi_plot.R

phiPlotR Documentation

Plot of phi versus y and boxplot of y

Description

The phiPlot function uses a dataset ds containing many y values to produce a line plot of phi versus y and a boxplot of y, and aligns them, one above the other. The first extreme value on either side of the boxplot should correspond to the point where phi becomes exactly 1 on the line plot. This function is dependent on the robustbase, ggplot2 and ggpubr packages, and will not work without them.

Usage

phiPlot(ds, phi.parms = NULL, limits = NULL, xlab = "y", ...)

Arguments

ds

Dataset of y values

phi.parms

The relevance function providing the data points where the pairs of values-relevance are known. Default is NULL

limits

Vector with values to draw limits. Default is NULL

xlab

Label of the x axis. Default is y

...

Extra parameters when deriving the relevance function

Value

A line plot of phi versus y, as well as a boxplot of y

Examples

ds <- rnorm(1000, 30, 10); phi.parms <- phi.control(ds); phiPlot(ds,phi.parms)
ds <- rpois(100,3); phiPlot(ds)


nunompmoniz/IRon documentation built on April 24, 2023, 1:20 p.m.