plot.weights {hbsae}R 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


[Package hbsae version 1.2 Index]