I would like to group sequence plots by individual.
I use ggpattern() to visualize the intertwining of the administrative and economic paths of foreigners who go through the French asylum system. The "administrative states" are coded as administrative situations of the individuals ((il)legality and protection of the stay in France) and the economic states are coded as income brackets (from aid or work). The time step is monthly. The number of invididuals is about 20. This is why I don't use the Traminer package dedicated to sequences but the 'ggplot2' builer add-in which is more intuitive and better adapted to my level on R and my objectives: to visualize paths and not to statistically build a typology of transitions.
For each pathway (administrative and economic), I built a distinct table in .csv format according to the principle: one row per individual, one column per monthly observation. Then I put them in tidy format with the function "gather" to have one line per individual and per time step. With geom_tile() I have drawn independently the two sequence index plots (administrative and economic).
With plot_grid() I can put these graphs one above the other, see figure 1.
This does not correspond to what I want to do, see figure 2 (handmade for two individuals only).
Do you know if it is possible to do this? Is it necessary to restructure the data or is it done at the time of the production of the plots?
Thanks in advance.