Rotation is setup in the top left part of a matrix so only the 3x3 part is shown here for each matrix.
Rotation θ around a axis
Rotation θ around a arbitrary axis R
c = cos(θ) and s = sin(θ). R is the normalized axis of rotation.
Understanding Rotations - 2012
Three Dimensional Rotations - 2001