s-news
[Top] [All Lists]

[S] Recap: Error in Drawing Icons

To: s-news@wubios.wustl.edu
Subject: [S] Recap: Error in Drawing Icons
From: "Michael D. Maltz" <mikem@uic.edu>
Date: Wed, 24 Feb 1999 22:11:38 -0600
Sender: owner-s-news@wubios.wustl.edu
My original message was:

>
> I'm trying to draw different icons on a time line using the following
> function:
>
> "place.icon" <- function(icon.name, x.loc, x.end, y.loc, size, color)
> {
> as.function(icon.name(x.loc, x.end, y.loc, size, color))
> }
>
> where icon.name is the name of a function that draws the icon (since some
> icons represent processes over time instead of point events, there are two x
> variables). It draws the function, but aborts with this error message:
>
> Error in as.function(icon.name(x.loc, x.end, y.lo..: Invalid data of mode
> "missing" (too short)
> Dumped


With help from Bill Dunlap (StatSci) and Nick Ellis (CSIRO) I found the
following solution to work:

"place.icon" <- function(icon.name, x.loc, x.end, y.loc, size, color)
{
 do.call(as.name(icon.name), list(x.loc, x.end, y.loc, size, color))
}
............................................
Michael D. Maltz
Dept. of Criminal Justice (M/C 141)
University of Illinois at Chicago
1007 West Harrison St.
Chicago, Illinois  60607-7140
Voice & voicemail (312)413-2473
Fax               (312)996-8355
Editor, Journal of Quantitative Criminology
Voice & voicemail (312)413-2440

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>
  • [S] Recap: Error in Drawing Icons, Michael D. Maltz <=