Learn R Programming

activityGCMM (version 1.1.1)

plotREs: Plot GCMM activity curve with random intercepts

Description

Plot GCMM activity curve with random intercepts

Usage

plotREs(
  model,
  RE1 = TRUE,
  RE2 = FALSE,
  scale = "NULL",
  ymax = "NULL",
  axisunits = "radians"
)

Arguments

model

Object of class GCMM with output from GCMM function

RE1

Logical vector for whether to plot GCMM activity curve with random intercepts from RE1; default=TRUE

RE2

Logical vector for whether to plot GCMM activity curve with random intercepts from RE2; default=FALSE

scale

Scale for plotting the activity curve, either "2pi" for 0,2pi or "pi" for -pi,pi; default="2pi"

ymax

Value for upper limit of y axis

axisunits

Units for x axis, either "radians", "time", "solar", "sun", or "none"; default="radians"

Value

No return value; prints plot of GCMM activity curve with random intercepts

Examples

Run this code
# NOT RUN {
 FoxGCMMREs<-GCMM(data=redfoxsample$Radians, RE1=redfoxsample$SamplingPeriod, 
       saveREs=TRUE, scale=c("2pi"), family="vonmises", autorun=FALSE,
       adapt=0, sample=300, burnin=300, thin=1)
    plotREs(FoxGCMMREs) 
# }

Run the code above in your browser using DataLab