componentsplot: GCMM Components Plot

Description Usage Arguments Value Examples

View source: R/GCMMplots.R

Description

Plot of activity curves for the separate components in the circular mixture model

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
componentsplot(
  model,
  rug = FALSE,
  ruglwd = 2,
  lwd = 3,
  col = c("black", "grey40", "grey60", "grey80"),
  scale = "NULL",
  ymax = "NULL",
  lty = 1,
  axisunits = c("radians", "sun", "solar", "time", "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. default=FALSE

ruglwd

Line width for rug plot

lwd

Line width for activity curve lines

col

Character vector for colours for the activity curve lines and rug plot; must be of equal length to the number of components

scale

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

ymax

Value for upper limit of y-axis

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

Plot of the separate components of 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)
        componentsplot(FoxActivityGCMM) 
 

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