s-news
[Top] [All Lists]

Re: image in different versions of S-PLUS

To: "'Xao Ping'" <xao_ping@yahoo.com>, "'s-plus user list'" <s-news@lists.biostat.wustl.edu>
Subject: Re: image in different versions of S-PLUS
From: "Dimitrios Chalvatzis" <dimitrios.stats@btopenworld.com>
Date: Wed, 28 Nov 2007 09:46:25 -0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btopenworld.com; h=Received:X-YMail-OSG:From:To:References:Subject:Date:Message-ID:MIME-Version:Content-Type:X-Mailer:X-MimeOLE:In-Reply-To:Thread-Index; b=NrW+LfU/YLjUSuj4GRCuoJnn33vN2n/Iuse4X3WYcyTrOBhQ6TDgs27k6YWgTuS1gJhH2LmKRR7scR8UZ0cyIivN0uvZ5bocR/Z0b8TYXmsgUvOEMBFtea91iQutj8QnnnGL8oxMVBibMEmQC40Jo/5FQDvn8NPnRkfOKUAh9nE= ;
In-reply-to: <263964.63631.qm@web56515.mail.re3.yahoo.com>
References: <263964.63631.qm@web56515.mail.re3.yahoo.com>
Thread-index: AcgxUv19v6vZTdRjQauW283+raRaCAAT+b0g

Colours are connected to the graphic device rather than the image function.

This is a script that allows you to tweak the colour range in the image plot

 

graphsheet(num.image.colors=3,num.image.shades="5,5",image.color.table="122,100,159|244,236,90|0,0,0") # RGB value specification

image(matrix(rnorm(10000),50))

 

I believe a similar has already appeared in the list so always check the S archives

 

Dimitrios


From: s-news-owner@lists.biostat.wustl.edu [mailto:s-news-owner@lists.biostat.wustl.edu] On Behalf Of Xao Ping
Sent: 28 November 2007 00:09
To: s-plus user list
Subject: [S] image in different versions of S-PLUS

 

Dear All:

 

Long ago, I have developed a nice program for color depiction of matrices of certain type, i.e., z[i,j], using "image". The values of z are integers 0:6. In the versions preceding the S-PLUS 6, it used to be a very bright good looking picture with seven very distinctive colors. In S-PLUS 6.2 it turned out to be a pretty dull but still color picture. In the S-PLUS 7, I have only gray scales of dark blue but no colors. I haven't found any set-up function for assigning colors to "image". Can anybody please help with solving the problem.

 

Thank you.

 

Xao Ping

R&R Pharmakinetics

Taiwan

 

 

 


Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.

<Prev in Thread] Current Thread [Next in Thread>