pcor_cl_plot() is a function in R to plot partial circular-linear correlation. The y-axis is the residuals of x1 regressing on x2, the x-axis is the residuals of alpha regressing on x2.
Arguments:
alpha: a circular vector (in radian with range [-pi, pi])
x1: a linear vector
x2: the linear vector that is going to be partialled out
label: a boolean of whether you want to annotate the plot with the r value of the partial correlation
xlab: x-axis label of the plot
ylab: y-axis label of the plot
Output:
a ggplot2 object
Imports:
circglmbayes
ggplot2
ppcor