RE: [R] How to sort TWO columns ?

From: Jacques VESLOT <jacques.veslot_at_cirad.fr>
Date: Wed 21 Jul 2004 - 17:27:50 EST


Sorry sorry,
I didn't pay enough attention to order() help pages indeed... and it costs me much useless indexing.

As concerns how to put legend in image() plot, is there a piece of information about somewhere ?
thanks a lot for helping,

Jacques VESLOT

-----Message d'origine-----
De : Uwe Ligges [mailto:ligges@statistik.uni-dortmund.de] Envoyé : mercredi 21 juillet 2004 10:48
À : jacques.veslot@cirad.fr
Cc : r-help@stat.math.ethz.ch
Objet : Re: [R] How to sort TWO columns ?

Jacques VESLOT wrote:

> Dear ALL,
>
> I fear my question has already been answered many times before, but I
> haven't fund that in archives...
>
> I am working on spatial datasets and, in most arrays I'm handling, there
are
> two columns dedicated to (x,y)-coords.
> For different reasons - notably to draw image() plots, I need to have
these
> two columns sorted in increasing order.
> But sort() and order() seem to apply to vectors - or one single column -
> only.
>
> Could somedy please let me know how to sort two columns of a dataframe,
with
> priority to one of them, just like in access ?

See ?order

Uwe Ligges

> Thanks,
>
> Jacques VESLOT
> CIRAD
>
> Another related question :
> How to put legend on image() plots - or image-based plots like
> image.kriging() in geoR ?
> Despite help pages, I haven't succeeded.
>
>
>
> -----------------------------------------------------
> CIRAD 3P Reunion - MailScanner
> -----------------------------------------------------
> Ce message a été vérifié par MailScanner
> et analyse par 4 antivirus :
> ClamAv - BitDefender - F-Prot - Panda.
>
> Aucun virus,ni rien de suspect n'a été trouvé.
>
> This message has been scanned for viruses and
> dangerous content, and is believed to be clean.
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!

http://www.R-project.org/posting-guide.html



CIRAD 3P Reunion - MailScanner

Ce message a été vérifié par MailScanner et analyse par 4 antivirus :
ClamAv - BitDefender - F-Prot - Panda.

Aucun virus,ni rien de suspect n'a été trouvé.

This message has been scanned for viruses and dangerous content, and is believed to be clean.




CIRAD 3P Reunion - MailScanner

Ce message a été vérifié par MailScanner et analyse par 4 antivirus :
ClamAv - BitDefender - F-Prot - Panda.

Aucun virus,ni rien de suspect n'a été trouvé.

This message has been scanned for viruses and dangerous content, and is believed to be clean.



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jul 21 17:38:27 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:37:17 EST