Description Usage Arguments Value Author(s) See Also Examples
gbxp
draws grid-based box plots based on the given summaries in
z
.
1 2 3 4 5 6 7 8 | gbxp(z, notch = FALSE, width = NULL, varwidth = FALSE,
outline = TRUE, notch.frac = 0.5, border = par("fg"),
pars = NULL, frame.plot = FALSE, horizontal = FALSE,
at = NULL, xaxis = FALSE, yaxis = FALSE, ...)
gboxplot(x, ..., width = NULL, varwidth = FALSE,
notch = FALSE, outline = TRUE, notch.frac = 0.5, plot = TRUE,
border = par("fg"), pars = NULL, frame.plot = FALSE,
horizontal = FALSE, xaxis = FALSE, yaxis = FALSE, at = NULL)
|
z |
a list containing data summaries to be used in constructing
the plots. These are usually the result of a call to
|
x |
for specifying data from which the boxplots are to be produced. Either a numeric vector, or a single list containing such vectors. Additional unnamed arguments specify further data as separate vectors (each corresponding to a component boxplot). 'NA's are allowed in the data. |
notch |
if |
width |
a vector giving the relative widths of the boxes making up the plot. |
varwidth |
if |
outline |
if |
notch.frac |
numeric in |
border |
character or numeric (vector), the colour of the box borders.
Is recycled for multiple boxes. Is used as default for the
|
frame.plot |
logical, indicating if a |
horizontal |
logical indicating if the boxplots should be horizontal;
default |
at |
numeric vector giving the locations where the boxplots should
be drawn, particularly when |
xaxis |
logical. If |
yaxis |
logical. If |
plot |
logical for |
pars,... |
graphical parameters (etc) can be passed as arguments
to this function, either as a list ( Currently, The following arguments (or
|
An invisible vector, actually identical to the at
argument, with
the coordinates ("x" if horizontal is false, "y" otherwise) of box
centers, useful for adding to the plot.
Original code by the R Core development team and Arni Magnusson. Modified by Ingo Voglhuber.
gbarplot
, gmatplot
,
gpie
, gsymbols
,
gbxp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | require(stats)
set.seed(753)
x <- split(rt(100, 4), gl(5,20))
grid.newpage()
gboxplot(x, yaxis=TRUE, frame.plot=TRUE)
grid.newpage()
gboxplot(x, notch = TRUE, pch = 4, boxfill=1:5)
grid.newpage()
gboxplot(x, notch = TRUE, boxfill= "lightblue",
frame= FALSE, outl= FALSE,xaxis=TRUE,yaxis=TRUE, frame.plot=TRUE)
grid.newpage()
gboxplot(x, notch = TRUE, boxfill= "lightblue",
border= 2:6, ylim = c(-4,4), pch = 22, bg = "green", log = "x")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.