plot_joint_circ {cylcop} | R Documentation |
Circular Scatterplot of Turn Angles and Step Lengths
Description
This function produces a circular scatterplot with the step lengths plotted as distance from the center of a circle and the turn angles as angles (polar coordinates).
Usage
plot_joint_circ(traj = NULL, theta = NULL, x = NULL)
Arguments
traj |
data.frame containing the trajectory produced by e.g.
|
theta |
(alternatively) numeric vector of angles (measurements of a circular variable) or "circular" component of pseudo-observations. |
x |
(alternatively) numeric vector of step lengths (measurements of a linear variable) or "linear" component of pseudo-observations. |
Details
You can either specify traj
or the angels and step lengths
theta
and x
.
Value
A 'ggplot
' object.
References
Hodel FH, Fieberg JR (2021). “Cylcop: An R Package for Circular-Linear Copulae with Angular Symmetry.” bioRxiv. doi:10.1101/2021.07.14.452253, https://www.biorxiv.org/content/10.1101/2021.07.14.452253v3/.
See Also
plot_cop_scat()
, plot_track()
,
plot_cop_surf()
, plot_joint_scat()
.
Examples
set.seed(123)
traj <- traj_sim(100,
copula = cyl_quadsec(0.1),
marginal_circ = list(name="vonmises",coef=list(0, 1)),
marginal_lin = list(name="weibull", coef=list(shape=3))
)
plot1 <- plot_joint_circ(traj)