Description Usage Arguments Value Examples
This is a function which produces dot charts with right-justified y-axis labels
1 2 3 4 5 |
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 |
This function is invoked for its side effect, which is to produce two variatns of dotplots, with right-justified y-axis labels
1 | rjdotchart(VADeaths[1,], main = "Death Rates in Virginia - 1940")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.