[R] Bug in Plot.table?

Martin Maechler maechler at stat.math.ethz.ch
Tue Apr 1 14:52:08 CEST 2003


>>>>> "partha" == partha bagchi <partha_bagchi at hgsi.com>
>>>>>     on Tue, 1 Apr 2003 07:38:03 -0500 writes:

    partha> While plotting a table using plot(table), I am not able to suppress the 
    partha> axes with axes = FALSE. Am I missing something or is it a bug?

    partha> For example:

    >> x <- c(rep(0, 7), rep(1, 4), rep(5, 3), rep(6, 4), rep(8, 10))
    >> table(x)

    >> plot(table(x), axes = FALSE)                #does not suppress the axes

it does suppress the y-axis only.

Yes, this can be considered to be a bug, and I'll look into a
simple fix for R 1.7.0

    >> plot(table(x), frame.plot= FALSE, axes = FASLE)   #deliberate spelling 
    partha> mistake does the job :)
    >> plot.default(table(x), type = "h", lwd= 10, axes= FALSE)  #this works

Martin Maechler <maechler at stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO C16	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><



More information about the R-help mailing list