| To: | Jewel Bright <jwlbright@yahoo.com> |
|---|---|
| Subject: | Re: rainbow in R |
| From: | roger bos <roger.bos@gmail.com> |
| Date: | Fri, 27 May 2005 12:10:01 -0400 |
| Cc: | s-plus-user-list <s-news@lists.biostat.wustl.edu> |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eGcLH+BZBEqbOGnCdXVpZhQNHcLeoyu58qJy90Oyg5boQKhF2lnxIqPxbY6HFkxwmlA+pMu+MiPMk/rp2qDWERxyxYy7pjBzrUdWBJIT9B3X1FbjBXqcMnaTN34rG2ZZI4NnYq0ANCg95ULfSeOhSXgcQ9e4e0XrCLNu3WRuU1Q= |
| In-reply-to: | <20050527142924.61414.qmail@web80910.mail.scd.yahoo.com> |
| References: | <20050527142924.61414.qmail@web80910.mail.scd.yahoo.com> |
| Reply-to: | roger bos <roger.bos@gmail.com> |
Jewel,
I haven't tried this myself, but did you try porting the R function
into S+: Here is the function. It looks like it woud be straight
forward to get it to run in S+. If you are having trouble porting it,
than maybe someone can help you with that specific question.
HTH,
Roger
function (n, s = 1, v = 1, start = 0, end = max(1, n - 1)/n,
gamma = 1)
{
if ((n <- as.integer(n[1])) > 0) {
if (start == end || any(c(start, end) < 0) || any(c(start,
end) > 1))
stop("'start' and 'end' must be distinct and in [0, 1].")
hsv(h = seq(start, ifelse(start > end, 1, 0) + end, length = n)%%1,
s, v, gamma)
}
else character(0)
}
On 5/27/05, Jewel Bright <jwlbright@yahoo.com> wrote:
> Dear Friends:
> Is there an S-PLUS function similar or identical to the "rainbow" function
> in R?
> Thanks
> Jewel
>
> ________________________________
> Yahoo! Mail
> Stay connected, organized, and protected. Take the tour
>
>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: R Metrics for SPLUS?, Eric Zivot |
|---|---|
| Next by Date: | Graphics question, David Kaplan |
| Previous by Thread: | rainbow in R, Jewel Bright |
| Next by Thread: | Graphics question, David Kaplan |
| Indexes: | [Date] [Thread] [Top] [All Lists] |