Usage
plotNA.gapsize(x, limit = 10, byTotalNA = F, legend = T,
col = c("indianred", "steelblue"),
xlab = "Ranking of the different gapsizes", ylab = "Number",
main = "Occurance of gapsizes (NAs in a row)", cex.names = 0.7,
horiz = F, axes = T, beside = T, las = 1, ...)
Arguments
x
Numeric Vector (vector
) or Time Series (ts
) object containing NAs limit
Specifies how many of the top gapsizes are shown in the plot.
byTotalNA
For byTotalNA = TRUE the top gapsizes according to their overall weight are shown. (occurence * gapsize)
For byTotalNA = FALSE the top gapsizes are shown by their number of occurence. (occurence)
legend
If TRUE a legend is shown at the bottom of the plot. A custom legend can be obtained by
setting this parameter to FALSE and using legend
function col
A vector of colors for the bars or bar components.
xlab
Label for x axis of the plot
ylab
Label for y axis of plot
main
Main title for the plot
cex.names
Expansion factor for axis names (bar labels).
horiz
A logical value. If FALSE, the bars are drawn vertically with the first bar to the left. If TRUE, the bars are drawn horizontally with the first at the bottom.
axes
Logical. If TRUE, a vertical (or horizontal, if horiz is true) axis is drawn.
beside
A logical value. If FALSE, the columns of height are portrayed as stacked bars, and if TRUE the columns are portrayed as juxtaposed bars.
las
Numeric in {0,1,2,3}; the style of axis labels. 0:always parallel to the axis, 1:always horizontal, 2:always perpendicular to the axis, 3:always vertical.
...
Additional graphical parameters that can be passed through to barplot