qsmoothPlotWeights: Plot weights from 'qsmooth' function.

Description Usage Arguments Value Examples

View source: R/plots.R

Description

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

Usage

1
2
3
4
5
6
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

1
2
3
4
5
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)

qsmooth documentation built on Nov. 8, 2020, 5:26 p.m.