Learn R Programming

activityGCMM (version 1.1.1)

mixtureplot: GCMM Mixture Plot

Description

Plot of estimated activity curve from the circular mixture model

Usage

mixtureplot(
  model,
  rug = FALSE,
  ruglwd = 2,
  lwd = 3,
  scale = "NULL",
  ymax = "NULL",
  col = "black",
  lty = 1,
  axisunits = c("radians", "time", "sun", "solar", "none"),
  xlines = TRUE
)

Arguments

model

Model output from GCMM function, object of class GCMM

rug

Logical argument for whether to plot a rug of the raw values. Plotting the rug for the separate components requires that saveclustIDs=TRUE when running GCMM or updateGCMM. default=FALSE

ruglwd

Line width for rug plot

lwd

Line width for activity curve

scale

Scale for the plot, either "pi" (-pi, pi) or "2pi" (0, 2pi); default is that recommended by the GCMM function

ymax

Value to use as y-axis maximum

col

Line colour for plot

lty

Line type for activity curve

axisunits

Scale to use for the xaxis, either "radians", "time", "solar", "sun", or "none"; default="radians"

xlines

Whether to include lines on the graph for the x axis labels; default=TRUE

Value

Prints mixture plot of the estimated activity curve from the circular mixture model

Examples

Run this code
# NOT RUN {
 FoxActivityGCMM<-GCMM(data=redfoxsample$Radians, 
              RE1=redfoxsample$SamplingPeriod, family="vonmises", autorun=FALSE,
              adapt=0, sample=300, burnin=300, thin=1, n.chains=2)
           mixtureplot(FoxActivityGCMM) 
# }
# NOT RUN {
 
# }

Run the code above in your browser using DataLab