Pattern formation in lattices