Interactions between grain size and composition of sediments: two examples