x: A RasterStackBrick object or a SpatRaster object whose z slot or time index are not NULL.
data: Not used.
dirXY: A direction as a function of the coordinates (see xyLayer).
stat: a function to be applied to summarize the values by zone. See zonal for details.
xlab, ylab: Labels of the axis.
par.settings: Customization of lattice. See xyplot
for details.
digits: An integer, number of digits for zonal.
auto.key: A logical or a list. If it is FALSE (default) a label with the value of the direction (as defined by dirXY)will be printed next to each line. You should read the help page of xyplot for details about the usage of auto.key as a list.
...: Additional arguments for the xyplot function.