comboplot: GCMM Combined Plot

Description Usage Arguments Value Examples

View source: R/GCMMplots.R

Description

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

Usage

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

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)
           comboplot(FoxActivityGCMM) 
 

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