comboplot {activityGCMM}R Documentation

GCMM Combined Plot

Description

Combined plot of estimated activity curve from mixture model and separate mixture components

Usage

comboplot(
  model,
  rug = FALSE,
  ruglwd = 2,
  ltyc = 2,
  ltym = 1,
  lwdc = 3,
  lwdm = 3,
  colc = c("grey40", "grey55", "grey70", "grey85"),
  colm = "black",
  scale = "NULL",
  ymax = "NULL",
  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

ltyc

Line type for activity curves for components

ltym

Line type for activity curves for mixture

lwdc

Line width for activity curve lines for components

lwdm

Line width for activity curve lines from mixture

colc

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

colm

Character vector for colour of activity curve line from mixture model

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

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 combined plot of estimated activity curve from mixture model and separate mixture components

Examples

 FoxActivityGCMM<-GCMM(data=redfoxsample$Radians, 
              RE1=redfoxsample$SamplingPeriod, family="vonmises", autorun=FALSE,
              adapt=0, sample=300, burnin=300, thin=1,n.chains=2)
           comboplot(FoxActivityGCMM) 
 

[Package activityGCMM version 1.1.1 Index]