panel plots not working

Are you talking about the panel functions in the lattice package? The gstat package only has two panel functions listed in the function reference:
https://r-spatial.github.io/gstat/reference/index.html

If you're working with data that is built into a package you're attaching, then it should be easy to use in a reprex. Please see the links in my earlier response.

Also, please take a moment to familiarise yourself with our site's homework policy (see below):