Description Usage Arguments Note Author(s) See Also Examples
Produces rudimentary ascii boxplots. The boxplot statistics are produced
using the boxplot.stats
function.
1 2 |
... |
Numeric vectors for which a boxplot should be produced |
range |
This determines how far the plot whiskers extend out from the
box. See |
legend |
Logical determining whether a legend should be drawn. If
|
xlab |
label for x-axis of boxplot, if NULL no x-label will be plotted |
width |
Width of the plot |
Due to rounding to a relatively crude grid results can only be approximate. E.g. the equally spaced axis ticks may be non-equally spaced in the plot.
Bjoern Bornkamp
1 2 3 4 5 | rand1 <- rnorm(100, 1, 2)
rand2 <- rnorm(50, 2, 2)
rand3 <- rnorm(50, 2, 5)
txtboxplot(rand1)
txtboxplot(rand1, rand2, rand3)
|
-2 0 2 4 6
|-------+------------+------------+-------------+------------+|
+--------+-------+
---------------| | |----------------------
+--------+-------+
-10 -5 0 5 10 15
|-+---------+----------+---------+---------+----------+-------|
+--+-+
1 -----| | |-------
+--+-+
+-+--+
2 --------| | |------
+-+--+
+------+-------+
3 ------------------| | |---------------------
+------+-------+
Legend: 1=rand1, 2=rand2, 3=rand3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.