rotateXY.RdRotates the scaledX and scaledY elements of a fishScaleAndMap output list so that the axis of interest (e.g., cortical layer) is paralled with the x cooridate plan. Rotation code is from https://stackoverflow.com/questions/15463462/rotate-graph-by-angle
rotateXY(datFish, flatVector = NULL, flipVector = NULL, subset = NULL)a fishScaleAndMap output list
a TRUE/FALSE vector ordred in the same way as the elements (e.g., cells) in datIn where all TRUE values correspond to cells who should have the same Y coordinate (e.g., be in the same layer). Alternatively a numeric vector of cell indices to include
a numeric vector of values to ensure proper reflection on Y-axes (e.g., layer; default=NULL)
a boolean or numeric vector of the elements to retain
a fishScaleAndMap output list with updated scaledX and scaleY coordinates