View source: R/plotting_functions.R
| plot_cop_scat | R Documentation |
This function produces a scatterplot ('ggplot' object) of
a sample from a copula. Either a sample is provided as input, or a sample
is drawn from a copula to quickly visualize it.
plot_cop_scat(traj = NULL, u = NULL, v = NULL)
traj |
a data.frame containing the trajectory produced by e.g.
|
u |
(alternatively) numeric vector of first components of pseudo-observations or draws from a copula. |
v |
(alternatively) numeric vector of second components of pseudo-observations or draws from a copula. |
Alternatively, instead of plotting a sample from a copula cop
using scatterplot(copula=cop), you can also use plot(cop).
If a trajectory is provided and n is smaller than nrow(traj),
n steps are randomly selected from the trajectory and plotted.
A 'ggplot' object, the scatterplot.
Hodelapplcylcop
\insertRefHodelmethodcylcop
plot_track(),
plot_joint_circ(), plot_cop_surf(), plot_joint_scat().
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))
)
plot_cop_scat(traj = traj)
sample <- rcylcop(100,cyl_quadsec(0.1))
plot_cop_scat(u = sample[,1], v = sample[,2])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.