Usage
grid_barplot(height, width = 0.8, offset = 0, names = NULL, xlim = NULL, ylim = NULL, xlab = "", ylab = "", main = "", gp = gpar(fill = "lightgray"), name = "grid_barplot", newpage = TRUE, pop = FALSE, return_grob = FALSE)
Arguments
height
either a vector or a 1-way table of frequencies.
width
width of the bars (recycled if needed to the number of bars).
offset
offset of the bars (recycled if needed to the number of bars).
names
a vector of names for the bars, if set
to NULL
the names of height
are used.
xlim
limits for the x axis.
ylim
limits for the y axis.
xlab
a label for the x axis.
ylab
a label for the y axis.
main
a title for the plot.
gp
a "gpar"
object controlling the grid graphical
parameters of the rectangles.
name
name of the plotting viewport.
pop
logical. Should the viewport created be popped?
return_grob
logical. Shall the plot be returned as a grob object?