Learn R Programming

abd (version 0.2-8)

Toads: Right-handed Toads

Description

Hypothetical probability of a toad being right-handed

Arguments

Format

A data frame with 19 observations on the following 2 variables.
n.toads
a numeric vector
prob
a numeric vector

Examples

Run this code
Toads
# generate this data manually
cbind(0:18, dbinom(0:18, 18, 0.5))
xyplot(prob ~ n.toads, Toads, type = 'h', lwd = 4)
barchart(prob ~ n.toads, Toads, origin=0, horizontal=FALSE)
plotDist('binom', params = list(18,0.5), kind = 'hist')

Run the code above in your browser using DataLab