qsmoothPlotWeights: Plot weights from 'qsmooth' function.

View source: R/plots.R

qsmoothPlotWeightsR Documentation

Plot weights from qsmooth function.

Description

This function plots a scatterplot showing the qsmoothWeights along the y-axis and the quantiles on the x-axis.

Usage

qsmoothPlotWeights(
  object,
  xLab = "quantiles",
  yLab = "weights",
  mainLab = "qsmooth weights"
)

Arguments

object

a qsmooth object from qsmooth

xLab

label for x-axis. Default is "quantiles"

yLab

label for y-axis. Default is "weights"

mainLab

title of plot. Default is "qsmooth weights"

Value

A scatterplot will be created showing the qsmoothWeights along the y-axis and the quantiles on the x-axis.

Examples

dat <- cbind(matrix(rnorm(1000), nrow=100, ncol=10), 
             matrix(rnorm(1000, .1, .7), nrow=100, ncol=10))
dat_qs <- qsmooth(object = dat, 
                  group_factor = rep(c(0,1), each=10))
qsmoothPlotWeights(dat_qs)


stephaniehicks/qsmooth documentation built on Nov. 7, 2022, 1:41 p.m.