[Traminer-users] change order of states in seqdplot but keep colors assigned to each state the same

Jeremy Reynolds jeremyr at uga.edu
Wed Jul 20 18:30:56 CEST 2016


Hi All,

I have created a plot using seqdplot using the default color scheme called
"Accent."

I would like to change the order in which the states are plotted but keep
the colors assigned to each state the same.

In the example below, for instance, how could I have "employment" stay
green but have it plotted at the top of the graph and have "further
education" remain purple  but have it plotted between the red and blue
states.

data(mvad)
mvad.labels <- c("employment", "further education", "higher education",
"joblessness", "school", "training")
mvad.seq <- seqdef(mvad, 15:86, labels = mvad.labels, xtstep = 6)
seqdplot(mvad.seq, border = NA)

I know that changing the order of the states in the variables used to make
the sequence object will change the order in which they are plotted, so
that is a good start, but I am not sure how to keep the color associated
with each state the same after the re-ordering.  Perhaps the solution is to
create a custom color palette with the same colors as the "Accent" color
palette, but I cannot seem to figure out the names of the colors used in
that palette.

Any tips would be appreciated.

Thanks,

Jeremy






-- 
********************
Dr. Jeremy Reynolds
Professor
Department of Sociology
116 Baldwin Hall
University of Georgia
Athens, GA 30602-1611
Phone: (706) 583-8072
Web: http://uga.edu/soc/people/faculty/reynolds_jeremy.php
Fax: (706) 542-4320
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/traminer-users/attachments/20160720/e1946dfc/attachment.html>


More information about the Traminer-users mailing list