Learn R Programming

cylcop (version 0.2.0)

plot_joint_circ: 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)

Value

A 'ggplot' object.

Arguments

traj

data.frame containing the trajectory produced by e.g. traj_sim(). It must contain the columns traj$angle and traj$steplength.

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.

References

Hodelmethodcylcop

See Also

plot_cop_scat(), plot_track(), plot_cop_surf(), plot_joint_scat().

Examples

Run this code
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)

Run the code above in your browser using DataLab