Package Txtplot': R Topics Documented
Package Txtplot': R Topics Documented
R topics documented:
txtboxplot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
txtplot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Index 5
Description
Produces rudimentary ascii boxplots. The boxplot statistics are produced using the boxplot.stats
function.
1
2 txtplot
Usage
txtboxplot(..., range = 1.5, legend = NULL, xlab = NULL,
width = round(options()$width * 0.8))
Arguments
... Numeric vectors for which a boxplot should be produced
range This determines how far the plot whiskers extend out from the box. See boxplot.stats
and the coef function for details.
legend Logical determining whether a legend should be drawn. If legend is NULL
there will be a legend drawn in case there is more than one boxplot.
xlab label for x-axis of boxplot, if NULL no x-label will be plotted
width Width of the plot
Note
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.
Author(s)
Bjoern Bornkamp
See Also
txtplot
Examples
rand1 <- rnorm(100, 1, 2)
rand2 <- rnorm(50, 2, 2)
rand3 <- rnorm(50, 2, 5)
txtboxplot(rand1)
txtboxplot(rand1, rand2, rand3)
Description
Provides a function to produce rudimentary ascii graphics directly in the terminal window.
txtplot provides the basic plotting function of two numeric vectors. All other functions below are
based on this.
txtcurve is a text based equivalent of the curve function
txtdensity is a text based density estimation function based on the density function
txtacf is a text based equivalent of the acf function and based on the acf function.
txtbarchart is a text based barplot and plots the relative frequences of the occurences of the
different levels of a factor (in percent)
txtplot 3
Usage
Arguments
Note
Due to rounding to a relatively crude grid results can only be approximate! The equally spaced axis
ticks, for example, may be non-equally spaced in the plot.
Due to the crude grid also there might be several points per pixel. The function uses the same
plotting symbol no matter how many points coincide on one pixel
4 txtplot
Author(s)
Bjoern Bornkamp
See Also
txtboxplot
Examples
## basic plotting function
require(stats)
txtplot(cars[,1], cars[,2])
## can include axis labels when desired
txtplot(cars[,1], cars[,2], xlab = "speed", ylab = "distance")
∗Topic hplot
txtboxplot, 1
txtplot, 2
boxcore (txtboxplot), 1
boxplot.stats, 2
checkNA (txtplot), 2
drawLegend (txtplot), 2
getRng (txtplot), 2
getTicks (txtplot), 2
insEOL (txtplot), 2
txtacf (txtplot), 2
txtbarchart (txtplot), 2
txtboxplot, 1, 4
txtcurve (txtplot), 2
txtdensity (txtplot), 2
txtplot, 2, 2