Learn R Programming

WVPlots (version 1.1.1)

PlotDistDensityBeta: Plot an empirical density with the matching beta distribution

Description

Compares empirical data to a beta distribution with the same mean and standard deviation.

Usage

PlotDistDensityBeta(frm, xvar, title)

Arguments

frm

data frame to get values from

xvar

name of the independent (input or model) column in frame

title

title to place on plot

Details

Plots the empirical density, the theoretical matching beta, the mean value, and plus/minus one standard deviation from the mean.

Examples

Run this code
# NOT RUN {
set.seed(52523)
d <- data.frame(wt=rbeta(100,shape1=1,shape2=0.5))
PlotDistDensityBeta(d,'wt','example')

# }

Run the code above in your browser using DataLab