Type function(s) for producing error bar and pointrange plots.
Usage
type_errorbar(length = 0.05)
type_pointrange()
Arguments
length
length of the edges of the arrow head (in inches).
Examples
library("tinyplot")mod =lm(mpg ~ wt *factor(am), mtcars)coefs =data.frame(names(coef(mod)), coef(mod), confint(mod))colnames(coefs) =c("term", "est", "lwr", "upr")op =tpar(pch =19)# "errorbar" and "pointrange" type convenience stringstinyplot(est ~ term, ymin = lwr, ymax = upr, data = coefs, type ="errorbar")
tinyplot(est ~ term, ymin = lwr, ymax = upr, data = coefs, type ="pointrange")
# Use `type_errorbar()` to pass extra arguments for customizationtinyplot(est ~ term, ymin = lwr, ymax = upr, data = coefs, type =type_errorbar(length =0.2))