mixtureplot: GCMM Mixture Plot

Description Usage Arguments Value Examples

View source: R/GCMMplots.R

Description

Plot of estimated activity curve from the circular mixture model

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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

1
2
3
4
5
 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) 
 

activityGCMM documentation built on June 15, 2021, 1:06 a.m.