
Last chance! 50% off unlimited learning
Sale ends in
Plot the multiples of a von Mises density distribution
plot_density(
x,
kappa = NULL,
axial = TRUE,
n = 512,
norm.density = FALSE,
...,
scale = 1.1,
shrink = 1,
add = TRUE,
main = NULL,
labels = TRUE,
at = seq(0, 360 - 45, 45),
cborder = TRUE,
grid = FALSE
)
plot or calculated densities as numeric vector
Data to be plotted. A numeric vector containing angles (in degrees).
Concentration parameter for the von Mises distribution.
Small kappa gives smooth density lines. Will be estimated using est.kappa()
if not provided.
Logical. Whether data are uniaxial (axial=FALSE
)
or biaxial (TRUE
, the default).
the number of equally spaced points at which the density is to be estimated.
logical. Normalize the density?
Further graphical parameters may also be supplied as arguments.
radius of plotted circle. Default is 1.1
.
parameter that controls the size of the plotted function. Default is 1.
logical. Add to existing plot? (TRUE
by default).
Character string specifying the title of the plot.
Either a logical value indicating whether to plot labels next to the tick marks, or a vector of labels for the tick marks.
Optional vector of angles at which tick marks should be plotted.
Set at=numeric(0)
to suppress tick marks.
logical. Border of rose plot.
logical. Whether a grid should be added.
dvm()
# Plot the rose histogram first:
rose(san_andreas$azi, dots = TRUE, stack = TRUE, dot_cex = 0.5, dot_pch = 21)
# Add density curve outside of main plot:
plot_density(san_andreas$azi,
kappa = 100, col = "#51127CFF", shrink = 1.5,
norm.density = FALSE
)
# Plot density inside plot only:
plot_density(san_andreas$azi,
kappa = 100, col = "#51127CFF", add = FALSE,
scale = .5, shrink = 2, norm.density = TRUE, grid = TRUE
)
Run the code above in your browser using DataLab