Trellis plots are a useful tool for visualizing nested data in an organized way. It lets a reader quickly…