qexpl: Quick visual explorations of sociometric datasets

View source: R/qexpl.R

qexplR Documentation

Quick visual explorations of sociometric datasets

Description

A set of standard visualizations of interaction, audio, and body movement data.

Usage

qexpl(
  x,
  measure = NULL,
  title = "",
  size = 1,
  colour = NULL,
  alpha = 1,
  leg.pos = "none"
)

Arguments

x

Data frame with sociometric data.

measure

String. For dataframes of type "ego", indicates the column name to be mapped to y-axis.

title

String. Title for the graphic

size

Numeric. Width of geom_line or size of geom_point.

colour

String. Name of the column to map on aesthetic colour.

alpha

Numeric 0..1. 0 is completely transparent, 1 is completely obscure.

leg.pos

String. In case colour mapping is used, indicates position of the legend, either "bottom", "top", "left", "right"

Value

graphic object

Examples


data("smtrx")

#print interaction data
qexpl(df.interact)

#add unidirectional edge column, named "Pairs"
df.interact <- mreverse(df.interact, into="Pairs")

qexpl(df.interact, colour="Pairs", title="Interaction pairs")

#print volume
qexpl(df.vol)

#print pitch
df.pitch %>%
 filter(ids=c("3119", "3184")) %>%
 qexpl(size=.2, title="Pitch", leg.pos="right")




jmueller17/sociometrics documentation built on March 20, 2024, 1:04 a.m.