Description Usage Arguments Value References Further details Examples
Generate music notation graph of social interactions
1 2 3 |
df |
A dataframe with at least 3 columns in the order: time, id1, id2. Every observation/row should be a mututally exclusive behavioral event. The first variable, time, can be in numeric or date/time format. The 2nd and 3rd variables, id1 and id2 should be character variables denoting the id of the individual (id1) directing each behavior to the other individual (id2) that receives the behavior. If want to discriminate lines by different behaviors, a 4th column should be the behavior of interest. Other columns are permissible in the dataframe that come after these required variables. |
ranks |
The default is NULL meaning that individuals will be plotted in alphanumerical order. Otherwise, a character vector indicating the rank of individuals (from highest to lowest) which will determine the plotted order of individuals. |
arrowsize |
The size of the arrowhead. |
arrowweight |
The weight of the arrowhead. |
pointsize |
The size of points. |
ylabel |
The y-axis title. |
colors |
The colors to be used for plotting. The defualt is
|
gridcolors |
default is to use grey horizontal grid lines,
but if |
gridlinesize |
Weight/size of gridlines. |
labels |
Default is |
behav |
Default is |
A music notation graph of social interactions.
Ivan D. Chase, (2006), Music notation: a new method for visualizing social interaction in animals and humans Frontiers in Zoology 3: 18
tba
1 2 3 4 5 6 7 | musicnot(flies)
musicnot(flies, gridcolors=T)
musicnot(flies, gridcolors=T, gridlinesize=0.5)
musicnot(flies, gridcolors=T, gridlinesize=0.5, colors="topo")
musicnot(flies, gridcolors=T, gridlinesize=0.5, colors="rainbow")
musicnot(flies, gridcolors=T, gridlinesize=0.5, labels="name")
musicnot(flies, gridcolors=T, gridlinesize=0.5, behav="yes")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.