Combined plot of estimated activity curve from mixture model and separate mixture components
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
)
Model output from GCMM
function, object of class GCMM
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
Line width for rug plot
Line type for activity curves for components
Line type for activity curves for mixture
Line width for activity curve lines for components
Line width for activity curve lines from mixture
Character vector for colours for the activity curve lines and rug plot for components; must be of equal length to the number of components
Character vector for colour of activity curve line from mixture model
Scale for the plot, either "pi" (-pi, pi) or "2pi" (0, 2pi); default is that recommended by the GCMM function
Value for upper limit of y-axis
Scale to use for the xaxis, either "radians", "time", "solar", "sun", or "none"; default="radians"
Whether to include lines on the graph for the x axis labels; default=TRUE
Prints combined plot of estimated activity curve from mixture model and separate mixture components
# NOT RUN {
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)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab