[Rd] text() does not accept data of type POSIXlt (PR#2487)

wolfram@fischer-zim.ch wolfram@fischer-zim.ch
Wed Jan 22 14:53:05 2003


[R 1.6.1]

PROBLEM
    If text() is called with an argument of type POSIXlt,
    I get the following error message:

        "Error in as.double.default(x) :
        (list) object cannot be coerced to vector type 14"

REMARK
    plot() accepts this data.

EXAMPLE
    data( Lifeboats, package='vcd' )
    attach(Lifeboats)
    plot( launch, total )
    text( launch, total, labels=seq( along=as.vector( launch ) ) )
    detach(Lifeboats)


Wolfram Fischer