Learn R Programming

hbsae (version 1.0)

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

Description

Plot method for objects of class weights.

Usage

# S3 method for weights
plot (x, log = FALSE,
    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-tranform the weights.

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