Simulate mixtures of trajectories in R.