rjdotchart: This is a function which produces dot charts with...

Description Usage Arguments Value Examples

Description

This is a function which produces dot charts with right-justified y-axis labels

Usage

1
2
3
4
5
rjdotchart(x, labels = NULL, groups = NULL, gdata = NULL,
  cex = par("cex"), pt.cex = cex, pch = 21, gpch = 21, bg = par("bg"),
  color = par("fg"), gcolor = par("fg"), lcolor = "gray",
  xlim = range(x[is.finite(x)]), main = NULL, xlab = NULL, ylab = NULL,
  ...)

Arguments

x

either a vector or a matrix of numeric calues (NAs are allowed).

labels

a vector of labels for each point. For vectors the default is to use names(x) and for matrices the row labels dimnames(x)[[1]].

groups

an optional factor indicating how the elements of x are grouped. If x is a matrix, groups will default to the columns of x.

gdata

data values for the groups. This is typically a summary such as the median or mean of each group.

cex

the character size to be used. Setting cex to a value smaller than one can be a useful way of avoiding label overlap. Unlike many other graphics functions, this sets the actual size, not a multiple of par("cex").

pt.cex

the cex to be applied to plotting symbols. This behaves like cex in plot().

pch

the plotting character or symbol to be used

gpch

the plotting character or symbol to be used for group values

bg

the background color of plotting characters or symbols to be used

color

the color(s) to be used for group labels and values

gcolor

the single color to be used for group labels and values

lcolor

the colors to be used for the horizontal lines

xlim

horizontal range for the plot

main

overall title for the plot

xlab

axis notations as in title

xlab

axis notations as in title

Value

This function is invoked for its side effect, which is to produce two variatns of dotplots, with right-justified y-axis labels

Examples

1
rjdotchart(VADeaths[1,], main = "Death Rates in Virginia - 1940")

jessicabeyer/rjdotchartr documentation built on May 27, 2019, 7:26 a.m.