Sedimentary facies are groupings of similar rock types, and their use in stratigraphy is essential. These videos explain some of the basic concepts behind using facies and various types of stratigraphy.
Carbonate deposition depends very heavily on the chemistry of the water and biology. Sediment transport is similar, except that carbonate cements can bind the grains into place.