meowlong: meowlong: main data in long (stacked) format.

Description Usage Format Examples

Description

The cat vocalisations in long (stacked) format (i.e., 100 rows per vocalisation)

Usage

1
data("meowlong")

Format

A data frame with 0 observations on the following 2 variables.

x

a numeric vector

y

a numeric vector

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
data(meowlong)

# The following example creates F0 curves (with an average) for every cat for "food" contexts.
# Change the word "food" to something else, to see other contexts.
library(lattice)
xyplot(f0~step.rescale|id,meow.long[meow.long$context=="food",],
   pch=19,
   cex=0.3,
   ylim=c(0,1000),
   panel=function(x,y){
   	panel.xyplot(x,y,pch=19,cex=0.4)
   	panel.loess(x,y,col="tomato3")})

# The following example creates F0 curves (with an average) for meows in different contexts.
xyplot(f0~step.rescale|context,meow.long[meow.long$type%in%c("Me","Mm"),],pch=19,cex=0.3,ylim=c(0,1000),panel=function(x,y){
      panel.xyplot(x,y,pch=19,cex=0.4)
      panel.loess(x,y,col="tomato3")})

vdweijer/meowsic documentation built on Dec. 23, 2020, 9:57 a.m.