You can edit your expression at any time by hitting alt/option on the stopwatch again-or by pressing the down arrow beside “position” and then double-clicking the text in the timeline. Discover the other things you can do with expressions here.
Using a coding language adapted from javascript, you can use all sorts of customizable commands to apply complex motion to layers. I want to apply a wiggling or shaking effect to both of these layers, so I will repeat these steps for both objects. For this example, I have an image of pancakes and then some stars.
In your after effects file, select the layer that you want to shake.