Re: [R] reorder breaking by half

From: Daniel Folkinshteyn <dfolkins_at_gmail.com>
Date: Fri, 06 Jun 2008 13:27:32 -0400

ci = rainbow(7)[c(4:7, 1:3)]

on 06/06/2008 01:02 PM avilella said the following:
> Hi,
>
> I want to reorder the colors given by rainbow(7) so that the last half
> move to the first 4.
>
> For example:
>
>> ci=rainbow(7)
>> ci
> [1] "#FF0000FF" "#FFDB00FF" "#49FF00FF" "#00FF92FF" "#0092FFFF"
> "#4900FFFF"
> [7] "#FF00DBFF"
>
> I would like "#FF0000FF" "#FFDB00FF" "#49FF00FF" to be at the end of
> ci, and the rest to be at the beginning.
>
> How can I do that?
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 06 Jun 2008 - 19:01:02 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 06 Jun 2008 - 19:30:40 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive