plot.weights: Plot method for objects of class 'weights'.

View source: R/output.R

plot.weightsR Documentation

Plot method for objects of class weights.

Description

Plot method for objects of class weights.

Usage

## S3 method for class 'weights'
plot(
  x,
  log = FALSE,
  breaks = "Scott",
  main = "Distribution of weights",
  xlab = if (log) "log(weight)" else "weight",
  ylab = "frequency",
  col = "cyan",
  ...
)

Arguments

x

object of class weights as returned by function uweights.

log

whether to log-transform the weights.

breaks

breaks argument of function hist. Default is "Scott".

main

main title of plot.

xlab

x-axis label.

ylab

y-axis label.

col

colour.

...

additional arguments passed to hist.

See Also

uweights, summary.weights


hbsae documentation built on March 18, 2022, 6:34 p.m.