Skip to content

different color indicates difference magnitude

14 messages · meng, Pascal Oettli, Marc Girondot +5 more

#
Hi all:
Is there a plot tool to use different color indicates difference magnitude of data?
The plot is in the attachment.

Many thanks.
#
Hi,

The attachment has been deleted. Please be more specific.

Regards,
Pascal
On 13/03/13 10:20, meng wrote:
#
So strange to find the attachment is disappear.
Resent again.
At 2013-03-13 13:01:01,"Pascal Oettli" <kridox at ymail.com> wrote:
#
No sure what you want exactly as there is no attachment here.
Here are an example of what can be done:

x <- 1:128
y <- rnorm(128, 10, 2)

z <- x+y

nbcol <- heat.colors(128)

# standardize z to be from 1 to 128
zcol <-  ((z-min(z))/(max(z)-min(z)))*127+1

# different examples
plot(x, y, col=nbcol[zcol], pch=".", cex=10, bty="n")
plot(x, y, col=nbcol[zcol], pch=".", cex=zcol/10, bty="n")
plot(x, y, col=nbcol[128-zcol], pch=".", cex=10, bty="n")

Sincerly

Marc
#
On Wed, Mar 13, 2013 at 4:13 AM, meng <laomeng_3 at 163.com> wrote:
Not strange at all. This list does not accept binary attachments, as
detailed in the posting guide linked at the bottom of this and every
list message.

Sarah

  
    
#
The R-help list strips most attachements other than text (and perhaps pngs? ) to deduce the risk of virus or malware being recieved.  

You could try parking the file on something like medifire and providing a link here.

John Kane
Kingston ON Canada
____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!
#
If you are just looking for a range of colors that communicate low to high
values, try package RColorBrewer and look at the sequential palettes.

----------------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77843-4352
#
On Mar 13, 2013, at 9:18 AM, John Kane wrote:

            
More accurately the server strips all files of type that are not in the set:  MIME-TEXT, pdf, png.

Most mail clients will not label files ending in .dat, .csv or .fil as mime-text and so many files which would otherwise be helpful  and are ASCII files do get discarded. I do not think that the server applies a test to the extension but rather that the mail clients are causing the problem by labeling them something else.

I am attaching an ascii file with an extension `.dat`. I expect it to be stripped.
-------------- next part --------------


--- 
David
David Winsemius
Alameda, CA, USA
#
Thanks David. The clarification helps.  I had forgotten that pdfs would get through.

Howeve the file got to me, I suspect because I am listed in the To line under my actual email address.  I suspect that only meng and I recieved it and the rest of the list did not.

John Kane
Kingston ON Canada
____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!
#
On Mar 13, 2013, at 10:45 AM, David Winsemius wrote:

            
My mail client labeled that attachment as:
------

--Apple-Mail-83-489973374
Content-Disposition: attachment;
	filename=junk.dat
Content-Type: application/octet-stream;
	name="junk.dat"
Content-Transfer-Encoding: 7bit
---------

... and the server stripped it, since it was expecting something like this:

--Apple-Mail-83-489973374
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

And I am here attaching a file I expect to remain attached:

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fil.txt
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130313/9e82c4c9/attachment.txt>
-------------- next part --------------
#
On 03/14/2013 12:10 PM, meng wrote:
Hi meng,
I think that the color.scale function (plotrix), which linearly 
transforms numeric values to colors, might be what you want.

Jim